Header Ads Widget

Responsive Advertisement

Ticker

6/recent/ticker-posts

How to handle the Drag And Drop in the WebDriver?





You can use drag and drop, either moving an element by a certain amount, or on to another element:
WebElement element = driver.findElement(By.name("source"));
WebElement target = driver.findElement(By.name("target"));

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

Post a Comment

0 Comments