title: Selenium webdriver recognizes button but does not click
body: <p>I am working on automation of an application written using JavaScript. I wrote code in Java to recognize a web button. This button becomes enabled only if an option in a listbox is selected. So I do that too.</p>
  
  <p>Code excerpts from application:</p>
  
  <p>
  
  <p>Issue: It recognizes the button but does not click it.</p>
  
  <p>my code n Java</p>
  
  <pre><code>    //Assign web element for listbox and click on item
      WebElement listitem=driver.findElement(By.id("yui-rec0"));
      listitem.click();
  
      //Click on Submit to complete login
      WebElement selectProfile=driver.findElement(By.id("f4_btnSelect"));
      selectProfile.click();
  </code></pre>