title: CSS selector for reCAPTCHA checkbok using Selenium and VBA Excel
body: <p>On the website I am trying to fill in some fields on, there is a checkbox that I need to click to add the check mark in it:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="rc-anchor-content"&gt;&lt;div class="rc-inline-block"&gt;&lt;div class="rc-anchor-center-container"&gt;&lt;div class="rc-anchor-center-item rc-anchor-checkbox-holder"&gt;&lt;span class="recaptcha-checkbox goog-inline-block recaptcha-checkbox-unchecked rc-anchor-checkbox recaptcha-checkbox-expired" role="checkbox" aria-checked="false" id="recaptcha-anchor" dir="ltr" aria-labelledby="recaptcha-anchor-label" aria-disabled="false" tabindex="0"&gt;&lt;div class="recaptcha-checkbox-border" role="presentation" style=""&gt;&lt;/div&gt;&lt;div class="recaptcha-checkbox-borderAnimation" role="presentation" style=""&gt;&lt;/div&gt;&lt;div class="recaptcha-checkbox-spinner" role="presentation" style="transform: rotate(180deg);"&gt;&lt;/div&gt;&lt;div class="recaptcha-checkbox-spinnerAnimation" role="presentation" style=""&gt;&lt;/div&gt;&lt;div class="recaptcha-checkbox-checkmark" role="presentation"&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="rc-inline-block"&gt;&lt;div class="rc-anchor-center-container"&gt;&lt;label class="rc-anchor-center-item rc-anchor-checkbox-label" aria-hidden="true" role="presentation" id="recaptcha-anchor-label"&gt;&lt;span aria-live="polite" aria-labelledby="recaptcha-accessible-status"&gt;&lt;/span&gt;I'm not a robot&lt;/label&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>Using Selenium in VBA, I tried the following</p>
  <pre><code>.FindElementByCss(&quot;div.recaptcha-checkbox-border&quot;).Click
  </code></pre>
  <p>And also I tried</p>
  <pre><code>.FindElementByCss(&quot;span.recaptcha-checkbox&quot;).Click
  </code></pre>
  <p>But I got an error at this line.</p>
  <p>Here's the link of the website to see the whole HTML
  <a href="https://www.moj.gov.kw/AR/E-Gov/Pages/eServices01.aspx" rel="nofollow noreferrer">https://www.moj.gov.kw/AR/E-Gov/Pages/eServices01.aspx</a></p>