title: Recaptcha and selenium
body: <p>I am trying to pass the Recaptcha verification the problem I am facing is sometimes it checks without the images and most of the time it gives the images.
  Is there a way or does someone know the requirement for Recaptcha to check without the images?
  I cant disable the Recaptcha.
  There is no point in having selenium if I will stop it to solve it manually.
  My code :</p>
  <pre><code>SoftAssert Sa = new SoftAssert();
          WebDriverWait wait = new WebDriverWait(driver, Duration.ofMillis(20000));
          JavascriptExecutor js = (JavascriptExecutor) driver;
          String FormatMessageInformatife = &quot;&lt;font color='#73a9d0'&gt;&lt;/br&gt;&lt;i class='fas fa-info-circle'&gt;&lt;/i&gt;- &quot;;
          String FormatMessageError = &quot;&lt;font color='#bf3d27'&gt;&lt;/br&gt;&lt;i class='fas fa-times-circle'&gt;&lt;/i&gt;- &quot;;
          String FormatMessageSucces = &quot;&lt;font color='#69c158'&gt;&lt;/br&gt;&lt;i class='fas fa-check-circle'&gt;&lt;/i&gt;-&quot;;
          WebElement ClkSignup = driver.findElement(By.id(&quot;toggle-button&quot;));
          ClkSignup.click();
          WebElement ClkSubscribe = driver
                  .findElement(By.xpath(&quot;//div[@id=\&quot;dialog-07zr\&quot;]/div[@class=\&quot;boutons-yellow\&quot;]/a[1]/button&quot;));
          ClkSubscribe.click();
          wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(&quot;//div[@class='steps-title']/ul/li[@class='active'][1]/span[normalize-space(text())='Coordonnées']&quot;)));
          Boolean AccesSubscription = driver.findElements(By.xpath(&quot;//div[@class='steps-title']/ul/li[@class='active'][1]/span[normalize-space(text())='Coordonnées']&quot;)).size() &gt; 0;
          if(AccesSubscription == true) {
              Reporter.log(FormatMessageSucces + &quot; Accessed Subscription &lt;/font&gt;&quot;);
              WebElement TVAInput = driver.findElement(By.id(&quot;create_account_step1_tva&quot;));
              sendHumanKeys(TVAInput,&quot;FR75850236541&quot;);
              WebElement EmailInput = driver.findElement(By.id(&quot;create_account_step1_mail&quot;));
              sendHumanKeys(EmailInput,&quot;test2021test@gmail.com&quot;);
              WebElement PhoneInput = driver.findElement(By.id(&quot;create_account_step1_phone&quot;));
              sendHumanKeys(PhoneInput,&quot;0721547861&quot;);
              WebElement PwdInput = driver.findElement(By.id(&quot;create_account_step1_password_first&quot;));
              sendHumanKeys(PwdInput,&quot;Test07ZR&quot;);
              WebElement CPwdInput = driver.findElement(By.id(&quot;create_account_step1_password_second&quot;));
              sendHumanKeys(CPwdInput,&quot;Test07ZR&quot;);
              wait.until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(By.xpath(&quot;//iframe[starts-with(@name, 'a-') and starts-with(@src, 'https://www.google.com/recaptcha')]&quot;)));
              Thread.sleep(10000);
              WebElement CaptchaClk = driver.findElement(By.cssSelector(&quot;div.recaptcha-checkbox-checkmark&quot;));
              js.executeScript(&quot;arguments[0].click();&quot;, CaptchaClk);
              WebElement RBClk = driver.findElement(By.xpath(&quot;//div[@id=\&quot;checkbox\&quot;]/label&quot;));
              js.executeScript(&quot;arguments[0].click();&quot;, RBClk);
              WebElement ClkNext = driver.findElement(By.id(&quot;bt&quot;));
              js.executeScript(&quot;arguments[0].click();&quot;, ClkNext);
              }else {
              Sa.assertEquals(false, true, &quot;Wasn't abel to acces Subscription&quot;);
              ScreenShot(driver);
              Reporter.log(FormatMessageError + &quot; Wasn't abel to acces Subscription&lt;/font&gt;&quot;);
  </code></pre>