1
请发现代码下面我跑(使用:日食-java的开普勒-SR2-Win32的x86_64的+ IE 11)警告消息:org.apache.http.impl.client.DefaultRequestDirector tryExecute
public class SampleTest {
public static void main(String[] args) {
System.setProperty("webdriver.ie.driver", "C:\\Program Files\\IEDriverServer\\IEDriverServer.exe");
WebDriver d1 = new InternetExplorerDriver();
d1.get("http://www.google.com/");
WebElement element = d1.findElement(By.name("q"));
element.sendKeys("selenium");
System.out.println("Test Selenium");
}
}
当运行我下面记录
Started InternetExplorerDriver server (64-bit)
2.40.0.0
Listening on port 22795
Mar 26, 2014 7:04:27 PM org.apache.http.impl.client.DefaultRequestDirector tryExecute
INFO: I/O exception (java.net.SocketException) caught when processing request: Software caused connection abort: recv failed
Mar 26, 2014 7:04:27 PM org.apache.http.impl.client.DefaultRequestDirector tryExecute
INFO: Retrying request
- 为什么会收到这样的警告信息所有的时间只能在IE
- 在写“发送键”字符串中的“搜索”文本框中其采取超过5秒FO R各自角色
希望了解这些...任何有用的笔记:)
欢迎来到StackOverflow。你应该每个帖子只问一个问题,特别是如果你的问题是不相关的,因为你问的两个问题是。我已经回答你的第一个问题。第二个问题在跟踪项目问题跟踪器中问题的问题的评论中进行了深入讨论,特别是[详细讨论根本原因的评论](http://code.google.com/p/selenium/issues/)细节?ID = 5116#C21)。 “slow sendKeys”问题的解决方法是使用32位版本的“IEDriverServer.exe”。 – JimEvans