实践环节https://demoqa.com/sortable
我用这个密码试过了
Actions action=new Actions(driver);
List<WebElement> elements=driver.findElements(By.xpath("//*[@id=\"demo-tabpane-list\"]/div/div"));
for(int i=5;i>=0;i--) {
action.dragAndDrop(elements.get(0), elements.get(i)).build().perform();
}
1条答案
按热度按时间u7up0aaq1#