title: Selenium cannot find an Input type submit
body: <p>I have a form that contains some input types 'text' which selenium finds and populates ok.  However it cannot find the input type submit on form, the structure looks somelike this this:</p>
  
  <pre><code>&lt;div&gt;
  &lt;div&gt;
  &lt;form&gt;
        &lt;div&gt;other elements are here....&lt;/div&gt;
           &lt;p&gt; &lt;input class="btn btn-success" type="submit" name="yt0" value="Register Now" /&gt;&lt;/p&gt;     
  &lt;/form&gt;
  &lt;/div&gt;
  &lt;div&gt;   
  </code></pre>
  
  <p>I have tried a few methods the latest of which is:</p>
  
  <pre><code>driver.findelement(By.name("yt0")).click();
  </code></pre>
  
  <p>also tried:</p>
  
  <pre><code>driver.findelement(By.name("yt0")).submit();
  </code></pre>
  
  <p>I can see the element clearly on the page, and selenium has entered all the text needed for the elements above the submit.  </p>
  
  <p>Is it possible that Selenium cannot find the submit because its contained in a hierarchy of DIVs? Thanks</p>