我按照网上所说下载了 WebDriver,版本 IEDriverServer_x64_3.9.0.zip,已经是最新版本了
以下是源码
public class IETest {
public static void main(String[] args) {
System.setProperty("webdriver.ie.driver", "D:\IEDriverServer.exe");
WebDriver wd = new InternetExplorerDriver();
wd.get("http://www.baidu.com");
try {
Thread.sleep(1200);
} catch (InterruptedException e) {
e.printStackTrace();
}
System.out.println(wd.getCurrentUrl());
wd.quit();

}
}
但是依然报错
Exception in thread "main" org.openqa.selenium.WebDriverException: java.net.SocketException: Connection reset
求教怎么解决?


↙↙↙阅读原文可查看相关链接,并与作者交流