title: Find an Element with Selenium/java IEdriver and Click on button to login
body: <p>I have been trying to get this element work with selenium/java. This Web app only works in IE9, and written in HTML, Javascript, CSS. please help with sample code.</p>
  
  <p>Code is :</p>
  
  <pre><code>form action=/login/main method=get
  input type=submit value="Login"
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/TZy9i.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TZy9i.jpg" alt="enter image description here"></a></p>
  
  <p>I have tried these methods, but click does not work. I get exception that no such Element. </p>
  
  <pre><code>driver.findElement(By.xpath("html/body/form/div/center/table/tbody/tr[4]/td/form/input")).click();
  driver.findElement(By.name("submit")).click();
  driver.findElement(By.tagName("input")).click();
  </code></pre>