use of org.openqa.selenium.interactions.internal.Coordinates in project selenium_java by sergueik.
the class BaseTest method scrolltoElement.
// origin:
// https://github.com/TsvetomirSlavov/JavaScriptForSeleniumMyCollection/blob/master/src/utils/UtilsQAAutoman.java
public void scrolltoElement(WebElement element) {
Coordinates coordinate = ((Locatable) element).getCoordinates();
coordinate.onPage();
coordinate.inViewPort();
}
Aggregations