title: How to bypass captcha in selenium java
body: <p>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(&quot;//<em>[@id=&quot;recaptcha-anchor&quot;]/div<a href="https://i.stack.imgur.com/p1zXb.png" rel="nofollow noreferrer">1</a>&quot;);
  driver.switchTo().frame(driver.findElement(By.xpath(&quot;//</em>[@id=&quot;ContentPlaceHolder1_maindiv&quot;]/div[6]/div/div/div/iframe&quot;)));
  WebElement captcha = driver.findElement(chkbox_captcha);
  driver.findElement(chkbox_captcha).click();
  <a href="https://i.stack.imgur.com/p1zXb.png" rel="nofollow noreferrer">enter image description here</a></p>