拖放不起作用,请一些伙伴帮助我。
driver.get("http://www.w3schools.com/html/tryit.asp?filename=tryhtml5_draganddrop");
Actions builder = new Actions(driver);
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
driver.switchTo().frame(driver.findElement(By.className("result_output")));
System.out.println(driver.findElement(By.tagName("body")).getText());
Action dropImage = builder.dragAndDrop(driver.findElement(By.id("drag1")), driver.findElement(By.id("div1"))).build();
dropImage.perform();