title: webdriver not clicking on button
body: <p>I have a scenario where if if mouse hover a box it shows the button on which I want to click. The html is something like this:</p>
  
  <pre><code>&lt;div class="Box on which hovering i get the button"&gt;
    &lt;div class="special button comes only on hovering"&gt;
  </code></pre>
  
  <p>I am using this code to click on the webdriver but without any success:</p>
  
  <pre><code>(IrenderedWebElement)driver.hover(locatorOfBox)
  (IrenderedWebElement)driver.click(special button locator)
  if(button.isDisplayed)
  driver.click
  </code></pre>
  
  <p>I have tried putting wait also in between hover and click but of no use. I am stuck so looking for answers.</p>