title: Selecting an option in a CSS-based menu with WebDriver
body: <p>I have a simple <a href="https://www.servage.net/blog/2009/03/20/create-a-cool-css-based-drop-down-menu/" rel="nofollow noreferrer">CSS-based dropdown menu</a>, and I'm trying to click on one of the menu items in a Java Selenium (WebDriver) test. </p>
  
  <p><img src="https://i.stack.imgur.com/uyhJs.png" alt="enter image description here"></p>
  
  <p>Both the menu (<code>&lt;ul&gt;</code> element) and the items (<code>&lt;a&gt;</code>) have IDs and creating corresponding <code>WebElement</code> objects works fine. I'm trying to click on one of the items with code like:</p>
  
  <pre><code>   hoverOver(transfersMenu);
     transferLink.click();
  </code></pre>
  
  <p>In <code>hoverOver()</code>, <strong>I've tried <a href="https://stackoverflow.com/q/6232390/56285">all three answers from this question</a>, but none of them work</strong>. I keep getting:  </p>
  
  <pre><code>org.openqa.selenium.ElementNotVisibleException: 
      Element is not currently visible and so may not be interacted with 
  Command duration or timeout: 2.06 seconds
  </code></pre>
  
  <p>(I've tried calling <code>transferLink.click()</code> also <em>before</em> <code>hoverOver()</code>, in the hope that the implicit wait would make it work, but nope.) </p>
  
  <p><strong>Any idea how to make the hovering work so that the link can be clicked?</strong></p>
  
  <p>Selenium version 2.21.0. I'm running the tests on Linux (Ubuntu), using Firefox 13.0. A colleague just  tried on Windows (using Firefox 12.0), and it didn't work for him either.</p>
  
  <p><strong>Update</strong>: As per Slanec's tip in comments, and <a href="http://code.google.com/p/selenium/wiki/AdvancedUserInteractions#Native_events_versus_synthetic_events" rel="nofollow noreferrer">these instructions</a>, I tried <code>setEnableNativeEvents(true)</code> on the <code>FirefoxProfile</code>. At first this failed:</p>
  
  <pre><code>org.openqa.selenium.InvalidElementStateException: 
      Cannot perform native interaction: Could not load native events component.
  </code></pre>
  
  <p>...but after I <strong>upgraded to Selenium 2.23.1</strong>, I no longer get that complaint. </p>
  
  <p>Still, the hovering doesn't work (with native events on or off). :-/</p>