Saturday, January 11, 2014

Drag And Drop


Here’s an example of using the Actions class to perform a drag and drop. Native events are required to be enabled.
WebElement element = driver.findElement(By.name("source"));
WebElement target = driver.findElement(By.name("target"));

(new Actions(driver)).dragAndDrop(element, target).perform();

No comments:

Post a Comment