title: Selenium-Webdriver (Java) failing to execute 'hoverover and click' function consistently
body: <p>I'm trying to access a screen in an application, which appears when I do a mouse-hover over a tab and click on one of the options. I used Actions method to execute this using selenium. Here's my code:</p>
  
  <pre><code>element=driver.findElement(By.id("tab"));
  Actions hoverover=new Actions(driver);
  hoverover.moveToElement(element).moveToElement(driver.findElement(By.id("menu"))).click().build().perform();
  </code></pre>
  
  <p>When I login to the application and directly call this tab, I'm able to access this without any issue. But the problem occurs when I access this tab from a different screen in the application. </p>
  
  <p>Whenever I access the hover-over page from a different page in the application, sometimes the page loads correctly but most of the time it fails and I recieve 'no such element' or 'stale element reference' error.</p>
  
  <p>I'm really not sure how it is able to access the tab without any issue sometimes and how sometimes it is throwing errors. Please guide me here and let me know if there is anything else(any additional functions/or an alternative to Actions?) I can do so that the mouse-over click works all the time.</p>
  
  <p>EDIT: I tried using both Explicit and Implicit waits and even thread.sleep as well, but in vain. In Chrome(only in chrome) when i do a manual screen refresh while it tries to access the tab, it works. But when I do the same in my code [driver.navigate().refresh()], it's not working!!</p>