0

下面是我启动 IE 浏览器和http://google.co.in页面的代码。

    File file = new File("C:/IEDriverServer/IEDriverServer.exe");
    System.setProperty("webdriver.ie.driver", file.getAbsolutePath());
    driver = new InternetExplorerDriver();
    baseUrl = "https://myruat.corp.webex.com/US/buy/signup.html";
    driver.manage().timeouts().implicitlyWait(120, TimeUnit.SECONDS);

我收到以下错误:
4235 [main] INFO org.apache.http.impl.client.DefaultHttpClient - 处理请求时捕获的 I/O 异常(org.apache.http.NoHttpResponseException):目标服务器未能响应
4235 [ main] INFO org.apache.http.impl.client.DefaultHttpClient - 重试请求

请让我知道如何纠正。

4

3 回答 3

0

您是否在路径环境变量中设置了 InternetExplorerDriver?

于 2013-08-23T08:20:01.320 回答
0
    System.setProperty("webdriver.ie.driver", "D:\\ImportantSeleniumTools\\IEDriverServer.exe");
    WebDriver driver=new InternetExplorerDriver();

在 System.setProperty 中给出保存 InternetExplorer 服务器文件的位置。

于 2014-01-31T12:06:20.663 回答
0

用这个...

// Simply give the path in the setProperty

System.setProperty("webdriver.ie.driver", "absolute_path");

//(absolute_path = Full path to the exe file of Internet Explorer)

// Ex : System.setProperty("webdriver.ie.driver", "C:\ \testing\ \IEDriver.exe");

// Use double slash instead of single slash.


WebDriver driver = new InternetExplorerDriver();
于 2013-11-06T09:36:36.243 回答