title: How to handle Mouseover in Selenium 2 API
body: <pre><code>String strPrimaryNav = "MEN";
  String strSecondaryNav = "Shoes";
  String strTertiaryNav = "Golf";
  
  driver.findElement(By.linkText(strPrimaryNav)).click();
  
  WebElement weSecNav = driver.findElement(By.className("secondaryButton").linkText(strSecondaryNav));
  
  Mouse mouse = ((HasInputDevices) driver).getMouse();
  mouse.mouseDown(((Locatable)weSecNav).getCoordinates());
  //just trying with for loop as the tertiary popup disappears quickly and hence getting ElementNotVisible Exception
  for (int i = 0 ; i&lt; 2; i++){
      mouse.mouseDown(((Locatable)weSecNav).getCoordinates());
      //mouse.mouseMove(((Locatable)weSecNav).getCoordinates(), 0, 0 );
      //WebElement weTerNav = driver.findElement(By.className("tertiaryButton").linkText(strTertiaryNav));
      WebElement weTerNav = driver.findElement(By.linkText(strTertiaryNav));
      boolean isSecDisplayed = ((RenderedWebElement)weTerNav).isDisplayed();
      System.out.println("isDisplayed: " + isSecDisplayed);
      System.out.println(" " + ((RenderedWebElement)weSecNav).getAttribute("href"));
      System.out.println(" " + ((RenderedWebElement)weSecNav).getValueOfCssProperty("action"));
      weTerNav.click();
  }
  </code></pre>
  
  <p>I was trying the below code using selenium 2 but, the tertiary popup not stays long to click it and hence getting ElementNotVisible exception at Tertiary click. </p>