HI I am working on this webdriver program with chrome browser. All are working fine except this drag and drop function.
It is not throwing me the error but it is still not executing the action. Can you help me with this. Thanks
WebElement name = driver.findElement(By.xpath("xpath id"));
WebElement target = driver.findElement(By.xpath("xpath id"));
Actions builder = new Actions(driver);
Action dragAndDrop = builder.clickAndHold(name)
.moveToElement(target)
.release(target)
.build();
dragAndDrop.perform();
}