I'm given a live site to automate a registration form which got a captcha(Selenium java). Is there any way to bypass it? I tried the following code to tick the captcha private By chkbox_captcha=By.xpath("//[@id="recaptcha-anchor"]/div1"); driver.switchTo().frame(driver.findElement(By.xpath("//[@id="ContentPlaceHolder1_maindiv"]/div[6]/div/div/div/iframe"))); WebElement captcha = driver.findElement(chkbox_captcha); driver.findElement(chkbox_captcha).click(); enter image description here
Asked
Active
Viewed 53 times
1
-
1Captcha verification serves to prevent bots to access the web. For testing purposes there should be an environment without captcha verification or some backdoor (f.e. custom http header) available. – pburgr Jan 18 '22 at 14:52