代码:
package org.coderinfo.demo;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
public class StartBrowser {
public static void main(String[] args) {
/* 如何使用IE浏览器
* 如果没有将IEDriverServer放入系统的环境变量中,那么必须在程序中设置 例如:
* System.setProperty("webdriver.ie.driver",* "IEDriverServer.exe文件存放的路径"* );
*/
System.setProperty("webdriver.ie.driver","C:\\Program Files\\Internet Explorer\\IEDriverServer.exe");
WebDriver driver = new InternetExplorerDriver();
driver.get("http://192.168.4.20/yocalyAdmin/login.jsp");
}
}
报错:
Started InternetExplorerDriver serv