auto_setClickElementJS

private void auto_setClickElementJS(WebElement element) {
    JavascriptExecutor jse = (JavascriptExecutor)getDriver();
    jse.executeScript("arguments[0].scrollIntoView(true)", element);
    jse.executeScript("arguments[0].click()", element);
}
What are your feelings
Scroll al inicio