List of usage examples for org.openqa.selenium.interactions Mouse mouseMove
void mouseMove(Coordinates where);
From source file:com.dhenton9000.selenium.generic.BaseTest.java
public void mouseOverElement(WebElement element, WebDriver driver) { Locatable hoverItem = (Locatable) element; Mouse mouse = ((HasInputDevices) driver).getMouse(); mouse.mouseMove(hoverItem.getCoordinates()); }
From source file:com.elastica.webelements.HtmlElement.java
License:Apache License
/** * Forces a mouseOver event on the WebElement. *///from w ww . j a v a 2 s. com public void mouseOver() { TestLogging.log("MouseOver " + this.toString()); findElement(); // build and perform the mouseOver with Advanced User Interactions API // Actions builder = new Actions(driver); // builder.moveToElement(element).build().perform(); Locatable hoverItem = (Locatable) element; Mouse mouse = ((HasInputDevices) driver).getMouse(); mouse.mouseMove(hoverItem.getCoordinates()); }