public void auto_dragAndDrop(WebElement elementFrom, WebElement elementTo){ Actions act = new Actions(getDriver()); act.dragAndDrop(elementFrom, elementTo).build().perform(); }