title: WebDriver is unable to perform click on an input element having onclick=function1() as an attribute
body: <p>I am using Web driver 2.31 with Java.  It seems the web driver is unable to perform click action on an input element having <code>onclick()</code> attribute.  </p>
  
  <p>The input element I need to perform click action on is having the following attributes - <code>id</code> (which is a random generated number), <code>class</code>, <code>type=button</code>, <code>onclick</code>, <code>onmouseout</code>, <code>onmouseover</code>, <code>title</code> and <code>value</code>.  </p>
  
  <p>I'm able to fetch the values of <code>title</code> and <code>value</code> attributes which means that the web driver is able to recognize the input element but is not able to perform click action on it.    </p>
  
  <p>I have tried with the following:</p>
  
  <ol>
  <li><code>webdriver.findElement(By.xpath("xpath for the input")).click()</code>  </li>
  <li><code>webdriver.findElement(By.xpath("xpath for the input")).sendKeys(Keys.ENTER);</code>   </li>
  <li><code>new Actions(webdriver).moveToElement(webdriver.findElement(By.xpath("xpath for the input"))).click().perform();</code>  </li>
  </ol>
  
  <p>None of the above options are working. </p>