【发布时间】:2016-10-09 22:04:04
【问题描述】:
错误是
无法使用 selenium webdriver 2.45.0 打开 mozila firefox 48.2
这是我的代码:
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class OpenBrowser {
public static void main(String[] args) throws InterruptedException {
WebDriver Driver = new FirefoxDriver();
Driver.get("https://www.google.com/");
Thread.sleep(5000L);
}
}
【问题讨论】:
-
你也应该升级你的 selenium 版本
-
从此链接ftp.mozilla.org/pub/firefox/releases/46.0.1/win64-EME-free/…下载Firefox,然后重试