WebDriver driver = new InternetExplorerDriver();driver.get("http://jqueryui.com/demos/slider/");//Identify WebElementWebElement slider = driver.findElement(By.xpath("//div[@id='slider']/a"));//Using Action ClassActions move = new Actions(driver);Action action = move.dragAndDropBy(slider, 30, 0).build();action.perform();driver.quit();
来源-https: //gist.github.com/2497551
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)