Give a guide to perform drag and drop action in Selenium WebDriver?

780    Asked by SmithBurgess in QA Testing , Asked on Feb 9, 2020
Answered by Smith Burgess

 Indeed, we can utilize the Advanced User Interactions API to perform intuitive tasks in a Selenium Webdriver venture.

Code model:

Actions act = new Actions(driver);

act.dragAndDrop(source_locator, target_locator).build().perform();

//Or you can use the below code style.

(new Actions(driver)).dragAndDrop(source_locator, target_locator).perform();



Your Answer

Interviews

Parent Categories