adspace
Answer Posted / Jitendra Rathore
To perform a drag-and-drop operation using Selenium WebDriver, you can use the `Actions` class. Here is an example for dragging an element with id 'draggable' to an element with id 'droppable':n```javanWebElement draggable = driver.findElement(By.id("draggable"));nWebElement droppable = driver.findElement(By.id("droppable"));nActions action = new Actions(driver);naction.dragAndDrop(draggable, droppable).build().perform();n```
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers