scrollToElementJS

public void scrollToElementJS(int x, int y) {
    JavascriptExecutor javScriptExecutor = (JavascriptExecutor)getDriver();
    javScriptExecutor.executeScript("window.scrollBy(" + x + ", " + y + ");");
}
What are your feelings
Scroll al inicio