How to handle Mouseover in Selenium 2 API
问题 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<