Clear Browsing History, cached data, cookies and other site data First Create an Google Account while you are in browser window opened by selenium. Sign in to your account
wd.get("https://accounts.google.com/signin/v2/identifier?hl=en&passive=true&continue=https%3A%2F%2Fwww.google.com%2F%3Fgws_rd%3Dssl&ec=GAZAmgQ&flowName=GlifWebSignIn&flowEntry=ServiceLogin"); Thread.sleep(2000); wd.findElement(By.name("identifier")).sendKeys("Email"+Keys.ENTER); Thread.sleep(3000); wd.findElement(By.name("password")).sendKeys("Password"+Keys.ENTER); Thread.sleep(5000);
Then Open any website that uses recaptcha tick on checkmark using this code
String framename=wd.findElement(By.tagName("iframe")).getAttribute("name"); wd.switchTo().frame(framename); wd.findElement(By.xpath("//span[@id='recaptcha-anchor']")).click();
You won't find any Puzzles or anything.