title: Send token from 2Captcha API to solve Hcaptcha using Python Selenium Chromedriver
body: <p>I am trying to solve the Hcaptcha page on a website protected by Cloudfare</p>
  <p>Website to access : <a href="https://carmanuals2.com/mazda/3-hatchback-2020-owner-s-manual-114463" rel="nofollow noreferrer">https://carmanuals2.com/mazda/3-hatchback-2020-owner-s-manual-114463</a></p>
  <p>I followed the instruction on Recatcha API and able to get token that are suppose to be placed in these two fields:</p>
  <pre><code>&lt;textarea id=&quot;g-recaptcha-response-0418tkobioj8&quot; name=&quot;g-recaptcha-response&quot; style=&quot;display: none;&quot;&gt;&lt;/textarea&gt;
  </code></pre>
  <pre><code>&lt;textarea id=&quot;h-captcha-response-0418tkobioj8&quot; name=&quot;h-captcha-response&quot; style=&quot;display: none;&quot;&gt;&lt;/textarea&gt;
  </code></pre>
  <p>API Documentation : <a href="https://2captcha.com/2captcha-api#solving_hcaptcha" rel="nofollow noreferrer">https://2captcha.com/2captcha-api#solving_hcaptcha</a></p>
  <p>Next step is to place the tokens on these two elements, However, I get a error as
  <code>selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable</code></p>
  <p>Here is a snipppet of my code, where I try to place the token I received (captcha)</p>
  <pre><code>        sitekey = site[&quot;src&quot;].split(&quot;=&quot;)[-1]
          
          currenturl = driver.current_url
          print (currenturl)
  
  
          flag, captcha = solve_h_captcha(sitekey,currenturl)
  
          username = driver.find_element_by_name('g-recaptcha-response')
          username.send_keys(captcha)
          time.sleep(2)
          
          username = driver.find_element_by_name('h-captcha-response')
          username.send_keys(captcha)
          time.sleep(2)
  
  #        username.send_keys(captcha)
          time.sleep(0.5)
  </code></pre>
  <p>Thanks a lot!!!!</p>