title: How to click on the submit button within theform after clicking the recaptcha-anchor using Selenium and Python
body: <p>I tried every thing, XPATH, NAME, TAG_NAME, CSS_SELECTOR but it allways returns me this error :</p>
  <pre><code>selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {&quot;method&quot;:&quot;xpath&quot;,&quot;selector&quot;:&quot;//*[@id='vote']/div[2]/div/form&quot;}
  </code></pre>
  <p>Here is my code :</p>
  <pre><code>time.sleep(4)
  form = navi.find_element(By.XPATH, &quot;//*[@id='vote']/div[2]/div/form&quot;).click()
  </code></pre>
  <p>Here is the html code of the webpage :</p>
  <pre><code>&lt;form action=&quot;https://www.serveursminecraft.org/serveur/&quot; method=&quot;post&quot;&gt;
                          &lt;input type=&quot;hidden&quot; name=&quot;id&quot; id=&quot;id&quot; value=&quot;2184&quot;&gt;
                          &lt;div class=&quot;modal-header&quot;&gt;
                              &lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;modal&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;&amp;times;&lt;/span&gt;&lt;span class=&quot;sr-only&quot;&gt;Close&lt;/span&gt;&lt;/button&gt;
                              &lt;h4 class=&quot;modal-title&quot; style=&quot;text-align: center;&quot;&gt;Confirmation du vote pour Chocolia - Farm2Win - Lots IRL&lt;/h4&gt;
                          &lt;/div&gt;
                          &lt;div class=&quot;modal-body&quot;&gt;
                              &lt;p style=&quot;font-size: 18px; text-align: center;&quot;&gt;&lt;span class=&quot;label label-info&quot;&gt;Vous pouvez voter seulement 1 fois toutes les &lt;b&gt;24 heures&lt;/b&gt;.&lt;/span&gt;&lt;/p&gt;
                              &lt;p style=&quot;font-size: 18px;&quot;&gt;Vous êtes sur le point de voter pour Chocolia - Farm2Win - Lots IRL, êtes vous sur ?&lt;/p&gt;&lt;br&gt;
                                                          &lt;div style=&quot;width: 300px; margin: 0 auto 1em auto;&quot;&gt;
                                  &lt;div class=&quot;g-recaptcha&quot; data-sitekey=&quot;6LegdhkUAAAAAJG95xpN69eylHs3bT4wRikdDQzH&quot;&gt;&lt;/div&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                          &lt;div class=&quot;modal-footer&quot; style=&quot;text-align: center;&quot;&gt;
                              &lt;button type=&quot;button&quot; class=&quot;btn btn-default&quot; data-dismiss=&quot;modal&quot;&gt;Annuler&lt;/button&gt;
                              &lt;input type=&quot;submit&quot; class=&quot;btn btn-success&quot; value=&quot;Confirmer le vote&quot;&gt;&lt;br&gt;&lt;br&gt;
                          &lt;/div&gt;
                      &lt;/form&gt;
  </code></pre>
  <p>I want to select this line of code :</p>
  <pre><code>&lt;input type=&quot;submit&quot; class=&quot;btn btn-success&quot; value=&quot;Confirmer le vote&quot;&gt;
  </code></pre>
  <p>Here is a part of my python code :</p>
  <pre><code>WebDriverWait(navi,10).until(EC.frame_to_be_available_and_switch_to_it((By.CSS_SELECTOR,&quot;iframe[name^='a'[src^='https://www.google.com/recaptcha/api2/anchor?']&quot;)))
  WebDriverWait(navi,10).until(EC.element_to_be_clickable((By.XPATH,&quot;//span[@id='recaptcha-anchor']&quot;))).click()
  time.sleep(4)
  navi.find_element(By.XPATH, &quot;//*[@id='vote']/div[2]/div/form&quot;).click()
  </code></pre>
  <p>Can you help me?</p>