auto_dragAndDrop

public void auto_dragAndDrop(WebElement elementToDrag, WebElement elementToReplace) {
    JavascriptExecutor jse = this.driver;
    jse.executeScript("arguments[0].scrollIntoView()", new Object[]{elementToReplace});
    (new Actions(this.driver)).dragAndDrop(elementToDrag, elementToReplace).perform();
}
What are your feelings
Scroll al inicio