about 11 years ago
The following code should be used:
- WebElement draggable = driver.findElement(By.xpath("//Give the xpath"));
- WebElement droppable = driver.findElement(By.xpath("//Give the xpath"));
- Actions action = new Actions(driver);
- action.dragAndDrop(draggable, droppable).perform();
WebElement draggable = driver.findElement(By.xpath("//Give the xpath")); WebElement droppable = driver.findElement(By.xpath("//Give the xpath")); Actions action = new Actions(driver); action.dragAndDrop(draggable, droppable).perform();
0 Comment(s)