1
我在Eclipse中使用selenium web驅動程序和junit。這是我的begining測試:selenium webdriver:InternetExplorerDriver服務器未啓動
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
,並加入到路徑。
爲什麼此信息出現,我該如何處理?
清除,謝謝) – khris
太棒了!注意將此標記爲接受的答案? – JimEvans