title: How to select an input element
body: <p>A page contains a form with element </p>
  
  <pre><code>&lt;input type="submit" class="button primary" value="Submit" accesskey="s"&gt;
  </code></pre>
  
  <p>I attempted all the next options to select that button</p>
  
  <pre><code>//driver.findElement((By.cssSelector("//*@id='QuickReply']/div[2]/input[2]"))).submit(); //this path is from firebug
  //driver.findElement(By.className("button.primary")).submit();
  driver.findElement(By.tagName("form")).submit();
  </code></pre>
  
  <p>But I get errors with those selects. What is wrong?</p>