title: Submitting Recaptcha v2 with selenium when no submit button is present python
body: <p>I am using services of <a href="http://www.imagetyperz.com/" rel="nofollow noreferrer">ImageTyperz</a> for solving the captcha but unable to submit a response back to the website. There is no submit button but a callback is there which should be called. When i call this callback i get <strong>selenium.common.exceptions.TimeoutException: Message: script timeout</strong> exception.
  The function which is called looks like this</p>
  <blockquote>
  </blockquote>
  <pre><code>                    function solvedCaptcha(payload) {
                          const timeoutMs = 10000;
                          protectionSubmitCaptcha(&quot;recaptcha&quot;, payload, timeoutMs, &quot;3:wi5qRb7c93CuT63y1uUslQ==:BXJXyJOzlEFA5FdRRQw7hUgzO5M4FIz8DegFPzs6fER0MRWYM+P2Vac+z3qKo5UxmDqMuThgGaT0hK+Tu6Zj0b5sprMSQI7P2Wv7fAj7aFUC20NO7VN6NtyyTehmQcxscyQBUqvlXbyTct2rUi81hPRk9fp7Vt32kGZspgx0v4tbTmDK2xMG1mj5nOVN9TL5zs88iYQDfSa2lKcdLrhYl5VcEDh5rAAte8d6rvead+5oY0a8B7fennPu2+36wZboyg4JJ1yMSpMmZ8Nk47/R/Q==:BwSP9POMwcERVjmiYuOpMZkDQmQS1ksQSij5jk8Fs8A=&quot;).then(function() {
                              window.location.reload(true);
                          });
                      }
                  
  </code></pre>
  <p>I am running the following command</p>
  <blockquote>
  <p>driver.execute_async_script(&quot;var payload = &quot; + str(recaptcha_response) + &quot;;&quot; + &quot;solvedCaptcha(payload);&quot;)</p>
  </blockquote>
  <p>Here recaptcha_response is the response dict got from ImageTyperz api.</p>