小编Ank*_*ain的帖子

如何识别SQL Server的端口号

我在我的系统中安装SQL服务器,我必须检查SQL在我的系统中工作的端口号

sql sql-server

35
推荐指数
7
解决办法
17万
查看次数

如何在Selenium WebDriver中滑动{move}滑块

如何在水平进度条URL上滑动滑块:http://jqueryui.com/slider/ 我试图滚动滑块但它对我不起作用.我使用Java的代码如下:

 public class TestClass 
 {
    public static void main(String[] args) {         
    File file = new File("D:\\Driver\\IEDriverServer.exe");
    System.setProperty("webdriver.ie.driver", file.getAbsolutePath());
    WebDriver driver = new InternetExplorerDriver();
    driver.get("http://jqueryui.com/slider/");

    WebElement slider = driver.findElement(By.xpath("//div[@id='slider']/a"));
    Actions move = new Actions(driver);
    Action action = (Action) move.dragAndDropBy(slider, 30, 0).build();
    ((Actions) action).perform();

}


}
Run Code Online (Sandbox Code Playgroud)

安慰

   Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable to    find element with css selector == html body div#slider.ui-slider a.ui-slider-handle   (WARNING: The server did not provide any stacktrace information)
  Command duration or timeout: 286 …
Run Code Online (Sandbox Code Playgroud)

java selenium slider selenium-webdriver

1
推荐指数
2
解决办法
4万
查看次数

标签 统计

java ×1

selenium ×1

selenium-webdriver ×1

slider ×1

sql ×1

sql-server ×1