public void mouseHoverOverElement ( By locator ) { SynchronisationService synchronisationService = new SynchronisationService ( ) ; synchronisationService . waitAndAssertForExpectedCondition ( ExpectedConditions . visibilityOfElementLocated ( locator ) ) ; WebElement element = getWebDriver ( ) . findElement ( locator ) ; Actions builder = new Actions ( getWebDriver ( ) ) ; Actions hoverOverRegistrar = builder . moveToElement ( element ) ; hoverOverRegistrar . perform ( ) ; }
Hovers the mouse over the given element