我在 Eclipse 中使用 selenium web 驱动程序和 junit。这是我测试的开始:
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
public class WebTest {
private WebDriver driver;
@Test
public void testUnit() throws Exception {
System.setProperty("webdriver.ie.driver", "IEDriverServer.exe");
driver = new InternetExplorerDriver();
运行测试后,我收到消息:
Started InternetExplorerDriver server (32-bit)
2.24.2.0
Listening on port 39133
Jul 03, 2012 3:46:24 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
Jul 03, 2012 3:46:24 PM org.apache.http.impl.client.DefaultRequestDirector tryExecute
INFO: Retrying request
我附加 IEDriverServer,将其设置到此目录E:\eclipse\WebDriver
并添加到路径。
为什么会出现此消息,我该如何处理?