selenium WebDriver自动化如何定位操作带有滑动效果的验证码
如图所示TRY move.dragAndDropBy(slider, 30, 0).build()
WebDriver driver = new InternetExplorerDriver();
driver.get("http://jqueryui.com/demos/slider/");
//Identify WebElement
WebElement slider = driver.findElement(By.xpath("//div[@id='slider']/a"));
//Using Action Class
Actions move = new Actions(driver);
Action action = move.dragAndDropBy(slider, 30, 0).build();
action.perform();
driver.quit(); 谢谢!我先去尝试一下 滑动
页:
[1]