2017-01-19 177 views
0

产生的原因:org.openqa.selenium.firefox.NotConnectedException:无法 连接后45000毫秒到主机端口7055 127.0.0.1。火狐 控制台输出:火狐\浏览器\功能\ [email protected] 1484800955114 addons.xpi DEBUG调用引导方法上 启动在 org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java: 112) ...... 33多个无法运行硒的webdriver

我使用的Firefox版本:50.1.0 硒版本:2.53.1 TestNG的; 6.9.9

回答

0

你需要更新你的硒库,以最新的即Selenium 3.0.1作为当前库不支持Firefox 50

Here

使用gecko驱动程序下载gecko驱动程序来运行你的脚本firefox -

System.setProperty("webdriver.gecko.driver","D:/Application/geckodriver.exe"); 
driver = new FirefoxDriver();