硒webdriver无法启动Firefox 26 + [英] Selenium webdriver fails to start with Firefox 26+

查看:112
本文介绍了硒webdriver无法启动Firefox 26 +的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用硒2.35与以前的版本的Firefox之前,它得到更新到版本的Firefox 26.0.My测试运行良好,但现在我最终得到以下错误。

  org.openqa.selenium.firefox.NotConnectedException:无法在45000 ms后连接到端口7055上的主机127.0.0.1。 Firefox控制台输出:
***日志addons.manager:应用程序已升级
*** LOG addons.xpi:启动
*** LOG addons.xpi:跳过不可用的安装位置应用程序-system-local
*** LOG addons.xpi:跳过不可用的安装位置app-system-share
*** LOG addons.xpi:忽略名称不是有效附加ID的文件条目:C:\ Users \VISHAL〜1.SIN\AppData\Local\Temp\anonymous4627406201097696285webdriver-profile\extensions\webdriver-staging
*** LOG addons.xpi:checkForChanges
*** LOG addons.xpi-utils:打开XPI数据库C:\ Users \VISHAL〜1.SIN\AppData\Local\Temp\anonymous4627406201097696285webdriver-profile\extensions.json
***日志addons.xpi:新的附加fxdriver@googlecode.com安装在应用程序配置文件
*** Blocklist :: _ loadBlocklistFromFile:blocklist被禁用
*** LOG addons.xpi-utils :使插件应用程序配置文件:fxdriver@googlecode.com可见
***日志延迟redSave / extensions.json:保存更改
*** LOG DeferredSave / extensions.json:保存更改
*** LOG addons.xpi:新增加的附件{9F17B1A2-7317-49ef-BCB7-7BB47BDE10F8 }安装在winreg-app-user
*** LOG addons.xpi-utils:Make addon winreg-app-user:{9F17B1A2-7317-49ef-BCB7-7BB47BDE10F8} visible
*** LOG DeferredSave / extensions.json:保存更改
*** LOG DeferredSave / extensions.json:保存更改
*** LOG addons.xpi:新增加的附件{972ce4c6-7e08-4474-a285-3208198ce6fd }安装在应用程序全局
***日志addons.xpi-utils:使插件应用程序全球:{972ce4c6-7e08-4474-a285-3208198ce6fd}可见
***日志DeferredSave / extensions。 json:保存更改
*** LOG DeferredSave / extensions.json:保存更改
*** LOG addons.xpi:在winreg中安装的新增附件{9F17B1A2-7317-49ef-BCB7-7BB47BDE10F8} -app-global
*** LOG DeferredSave / extensions.json:保存更改
*** LOG addons.xpi:在winreg-app-global $ b中安装的新增附件mgsusageagentnt@managesoft.com $ b *** LOG添加ons.xpi-utils:使插件winreg-app-global:mgsusageagent@managesoft.com可见
*** LOG DeferredSave / extensions.json:保存更改
*** LOG DeferredSave / extensions.json:保存更改
*** LOG addons.xpi:更新已安装的附加组件的数据库
*** LOG addons.xpi-utils:更新附加组件状态
*** LOG addons.xpi-utils:编写加载项列表
*** LOG DeferredSave / extensions.json:启动定时器
*** LOG DeferredSave / extensions.json:开始写入
*** LOG DeferredSave / extensions.json:写入成功
*** LOG addons.xpi-utils:保存XPI数据库,将模式版本优先级设置为15
*** LOG addons.manager:shutdown
***日志addons.xpi:关机
***日志addons.xpi-utils:关机
***日志addons.xpi:通知XPI关机观察员
***日志插件。经理:异步提供程序关闭完成
***日志addons.xpi:启动
***日志addons.xpi:跳过不可用的安装位置app-system-local
***日志addo ns.xpi:跳过不可用的安装位置app-system-share
*** addons.xpi:忽略名称不是有效附加ID的文件条目:C:\ Users \ VISHAL〜1。 SIN \AppData\Local\Temp\anonymous4627406201097696285webdriver-profile\extensions\webdriver-staging
*** LOG addons.xpi:checkForChanges
*** LOG addons.xpi:无变化找到
JavaScript错误:chrome://browser/content/urlbarBindings.xml,第654行:aUrl未定义

我尝试降级Firefox的版本,但无法从Mozilla网站获得任何以前的版本。



我也尝试了所有的2.36版本的selenium, 2.37,2.38,2.39但他们没有一个似乎与firefox 26.0兼容。一旦我尝试用2.36到2.39替换硒2.35,代码中有错误。这些错误消失时,我再次取代2.35。

有人可以帮助我的兼容版本的硒和火狐?

解决方案

你可以使用2.XX的任何版本的selenium,但是只能使用firefox25或firefox 14.01到17.XX的限制

I was using selenium 2.35 with previous versions of firefox before it got updated to version firefox 26.0.My tests were running fine previously but now I end up getting the following error.

 org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
*** LOG addons.manager: Application has been upgraded
*** LOG addons.xpi: startup
*** LOG addons.xpi: Skipping unavailable install location app-system-local
*** LOG addons.xpi: Skipping unavailable install location app-system-share
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: C:\Users\VISHAL~1.SIN\AppData\Local\Temp\anonymous4627406201097696285webdriver-profile\extensions\webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi-utils: Opening XPI database C:\Users\VISHAL~1.SIN\AppData\Local\Temp\anonymous4627406201097696285webdriver-profile\extensions.json
*** LOG addons.xpi: New add-on fxdriver@googlecode.com installed in app-profile
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
*** LOG addons.xpi-utils: Make addon app-profile:fxdriver@googlecode.com visible
*** LOG DeferredSave/extensions.json: Save changes
*** LOG DeferredSave/extensions.json: Save changes
*** LOG addons.xpi: New add-on {9F17B1A2-7317-49ef-BCB7-7BB47BDE10F8} installed in winreg-app-user
*** LOG addons.xpi-utils: Make addon winreg-app-user:{9F17B1A2-7317-49ef-BCB7-7BB47BDE10F8} visible
*** LOG DeferredSave/extensions.json: Save changes
*** LOG DeferredSave/extensions.json: Save changes
*** LOG addons.xpi: New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global
*** LOG addons.xpi-utils: Make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd} visible
*** LOG DeferredSave/extensions.json: Save changes
*** LOG DeferredSave/extensions.json: Save changes
*** LOG addons.xpi: New add-on {9F17B1A2-7317-49ef-BCB7-7BB47BDE10F8} installed in winreg-app-global
*** LOG DeferredSave/extensions.json: Save changes
*** LOG addons.xpi: New add-on mgsusageagent@managesoft.com installed in winreg-app-global
*** LOG addons.xpi-utils: Make addon winreg-app-global:mgsusageagent@managesoft.com visible
*** LOG DeferredSave/extensions.json: Save changes
*** LOG DeferredSave/extensions.json: Save changes
*** LOG addons.xpi: Updating database with changes to installed add-ons
*** LOG addons.xpi-utils: Updating add-on states
*** LOG addons.xpi-utils: Writing add-ons list
*** LOG DeferredSave/extensions.json: Starting timer
*** LOG DeferredSave/extensions.json: Starting write
*** LOG DeferredSave/extensions.json: Write succeeded
*** LOG addons.xpi-utils: XPI Database saved, setting schema version preference to 15
*** LOG addons.manager: shutdown
*** LOG addons.xpi: shutdown
*** LOG addons.xpi-utils: shutdown
*** LOG addons.xpi: Notifying XPI shutdown observers
*** LOG addons.manager: Async provider shutdown done
*** LOG addons.xpi: startup
*** LOG addons.xpi: Skipping unavailable install location app-system-local
*** LOG addons.xpi: Skipping unavailable install location app-system-share
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: C:\Users\VISHAL~1.SIN\AppData\Local\Temp\anonymous4627406201097696285webdriver-profile\extensions\webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi: No changes found
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 654: aUrl is undefined

I tried to downgrade the version of firefox but am unable to get any previous versions from the mozilla site.

I also tried all the selenium versions 2.36,2.37,2.38,2.39 but none of them seems to be compatible with firefox 26.0. There are errors in the code once I try to replace the selenium 2.35 with 2.36 to 2.39. These errors disappear when I replace again with 2.35.

Can anybody help me with the compatible versions of Selenium and Firefox?

解决方案

You can use any version of selenium from 2.XX but there is only limitation that we can use only firefox25 or firefox 14.01 to 17.XX

这篇关于硒webdriver无法启动Firefox 26 +的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆