Monday, August 1, 2016

How to perform drag & Drop

First locate the source and destination e.g
webElement gsource = driver.findelement(by.id(“<>”));
webElement gdestination = driver.findelement(by.id(“<>”));

Actions ac = new Actions(driver);

ac.dragAndDrop(gsource, gdestination).perform();

No comments: