简体   繁体   English

无法从Selenium WebDriver打开Firefox

[英]Not able to open firefox from selenium webdriver

I am getting the below error when i am running the selenium script. 运行硒脚本时出现以下错误。

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
fTime":1409733904986}}},{"name":"winreg-app-user","addons":{"{e4f94d1e-2f53-401e-8885-681602c0ddd8}":{"descriptor":"C:\\ProgramData\\McAfee Security Scan\\Extensions\\{e4f94d1e-2f53-401e-8885-681602c0ddd8}.xpi","mtime":1396607774000}}},{"name":"app-profile","addons":{"fxdriver@googlecode.com":{"descriptor":"C:\\Users\\kishna\\AppData\\Local\\Temp\\anonymous3395727590319882631webdriver-profile\\extensions\\fxdriver@googlecode.com","mtime":1409812670363,"rdfTime":1409812670181}}}]
1409812670931   addons.xpi-utils    DEBUG   Opening XPI database C:\Users\kishna\AppData\Local\Temp\anonymous3395727590319882631webdriver-profile\extensions.json
1409812670931   addons.xpi  DEBUG   New add-on fxdriver@googlecode.com installed in app-profile

You are using selenium version that doesn't support Firefox version 32. 您使用的selenium版本不支持Firefox 32。

And since currently there is no selenium java package version that claiming support for Firefox 32, you need to downgrade your browser. 并且由于当前没有声称支持Firefox 32的selenium Java软件包版本,因此您需要降级浏览器。 In your case, downgrade it to Firefox 28 , which is listed as supported by selenium 2.42.2. 根据您的情况,将其降级为Firefox 28 ,该版本已被硒2.42.2 支持

See also similar problem here: 在这里也可以看到类似的问题:

Also see: 另请参阅:

Please upgrade to 2.43.1 [ http://www.seleniumhq.org/download/] . 请升级到2.43.1 [ http://www.seleniumhq.org/download/] The new version works for FF32. 新版本适用于FF32。

You can follow link below in the future for check supported versions FF vs. WebDriver. 您将来可以点击下面的链接查看支持的版本FF vs. WebDriver。 I use it if I want to update browser or webdriver library. 如果要更新浏览器或WebDriver库,可以使用它。

LINK: http://selenium.googlecode.com/git/java/CHANGELOG LINK: http : //selenium.googlecode.com/git/java/CHANGELOG

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM