硒2.48.2 +火狐42 +浏览器没有得到实例化 [英] Selenium 2.48.2 +firefox 42 +browser not getting instantiated

查看:140
本文介绍了硒2.48.2 +火狐42 +浏览器没有得到实例化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经从2.46.0升级到Selenium 2.48.2,并将Firefox升级到最新版本42.升级后,浏览器没有得到实例化。



正在发生的所有项目。我试图降级Firefox和硒,但它没有帮助。



请提示!!

以下是错误:

  org.openqa.selenium.firefox.NotConnectedException:无法在45000 ms后连接到端口7055上的主机127.0.0.1。 Firefox的控制台输出:
addons.xpi-utils的DEBUG制作插件应用全局:{972ce4c6-7e08-4474-a285-3208198ce6fd}可见
1447491412018 DeferredSave.extensions.json DEBUG保存更改
1447491412018 DEBUG保存更改
1447491412018 addons.xpi DEBUG更新XPIState for {id:{972ce4c6-7e08-4474-a285-3208198ce6fd},syncGUID:OsOdnf_TnA9t,location : 应用全局, 版本: 42.0, 类型: 主题, INTERNALNAME: 经典/ 1.0, 器updateURL:空, updateKey:空, optionsURL:空,optionsType:null,aboutURL:null,iconURL:null,icon64URL:null,defaultLocale:{name:Default,description:默认主题, creator:Mozilla,homepageURL:null,贡献者:[Mozilla贡献者]},visible:true,active:true,userDisabled:false,appDisabled:false,描述符:C:\\\ Program Files(x86)\\ Mozilla Firefox \\ browser \\\\\\\\'{972ce4c6-7e08-4474-a285-3208198ce6fd}, installDate:1447489593709, updateDate:1447489593709, applyBackgroundUpdates:1, 换肤功能:真实的, 大小:24301, sourceURI:空, releaseNotesURI:空, softDisabled:假的,foreignInstall :假 hasBinaryComponents :假 strictCompatibility :真 的区域设置 :[], targetApplications :[{ ID :{ec8030f7-C20A-464f-9b0e-13a3a9e97384}, MINVERSION : 42.0, MAXVERSION: 42.0}], targetPlatforms:[]}
1447491412018 addons.xpi DEBUG getModTime:{972ce4c6-7e08-4474-a285-3208198ce6fd} $ b $的递归扫描b 1447491412020 addons.xpi DEBUG新附加fiddlerhook@fiddler2.com安装在WinReg项-APP-全球
1447491412030个addons.xpi WARN禁止外安装的附加fiddlerhook@fiddler2.com在WinReg项-APP-全球
1447491412030 addons.xpi-utils的DEBUG制作插件WinReg项-APP-全球:fiddlerhook@fiddler2.com可见
1447491412030 DeferredSave.extensions.json DEBUG保存更改
1447491412030 DeferredSave.extensions.json DEBUG保存修改
1447491412030 addons.xpi DEBUG更新XPIState for {id:fiddlerhook@fiddler2.com,syncGUID:mZKE2ni5yBIT,location:winreg-app-global,version:2.5.1.8 , 类型: 扩展, INTERNALNAME:NULL, 器updateURL:NULL, updateKey:NULL, optionsURL:NULL, optionsType:NULL, aboutURL:铬:// fiddlerhook /内容/ about.xul iconURL: 铬://fiddlerhook/content/fiddlerhook.png, icon64URL:空, defaultLocale:{ 名: FiddlerHook, 说明: 整合Fiddler into Firefox,creator:Telerik,homepageURL:https://fiddler2.com/r/?FIDDLERHOOKHELP},visible:true,active:false,userDisabled:true appDisabled:假, 描述符: C:\\Program文件(x86)\\Fiddler2\\FiddlerHook, installDate:1441879129965 updateDate:1441879129965, applyBackgroundUpdates :1, 引导:假的, 大小:33903, sourceURI:空, releaseNotesURI:空, softDisabled:假的, foreignInstall:真实的, hasBinaryComponents:假的, strictCompatibility:假的区域设置:[],圆盾tApplications :[{ ID :{ec8030f7-C20A-464f-9b0e-13a3a9e97384}, MINVERSION: 4.0, MAXVERSION: 42 *}], targetPlatforms:[], multiprocessCompatible:false,signedState:0}
1447491412031 addons.xpi DEBUG更新数据库,更改已安装的加载项
1447491412031 addons.xpi-utils DEBUG更新附加状态
1447491412037 addons.xpi-utils DEBUG编写附加组件列表
1447491412059 addons.manager DEBUG注册XPIProvider的关闭阻塞程序
1447491412059 addons.manager DEBUG提供程序完成启动:XPIProvider
1447491412059 addons.manager DEBUG启动提供者:LightweightThemeManager
1447491412059 addons.manager DEBUG注册LightweightThemeManager的关闭阻止程序
1447491412059 addons.manager DEBUG提供程序完成启动:LightweightThemeManager
1447491412060 addons.manager DEBUG开始提供程序:GMPProvider
1447491412066插件.manager DEBUG注册关闭GMPProvider的阻止程序
1447491412067 addons.manager DEBUG提供程序完成启动:GMPProvider
1447491412067 addons.manager DEBUG启动提供程序:PluginProvider
1447491412067 addons.manager DEBUG注册PluginProvider的关闭阻止程序
1447491412067 addons.manager DEBUG提供程序完成启动:PluginProvider
1447491412068 addons.manager DEBUG完成启动顺序

在org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:122)在org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:276)

。在org.openqa.selenium.remote.RemoteWebDriver<初始化>(RemoteWebDriver.java:116)
at org.openqa.selenium.firefox.FirefoxDriver。< init>(FirefoxDriver.java:223)


CHANGELOG ,他们指的是一些版本可能会工作。

然后,如果你想要一个特定的Firefox版本,请转到他们的以前的版本页面


I have upgraded to Selenium 2.48.2 from 2.46.0 and have upgraded firefox to latest version 42. After upgrade, the browser is not getting instantiated.

This is happening for all projects. I tried downgrading firefox and selenium too but it has not helped.

Please suggest!!

Following is error:

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
addons.xpi-utils    DEBUG   Make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd} visible
1447491412018   DeferredSave.extensions.json    DEBUG   Save changes
1447491412018   DeferredSave.extensions.json    DEBUG   Save changes
1447491412018   addons.xpi  DEBUG   Updating XPIState for {"id":"{972ce4c6-7e08-4474-a285-3208198ce6fd}","syncGUID":"OsOdnf_TnA9t","location":"app-global","version":"42.0","type":"theme","internalName":"classic/1.0","updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Default","description":"The default theme.","creator":"Mozilla","homepageURL":null,"contributors":["Mozilla Contributors"]},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","installDate":1447489593709,"updateDate":1447489593709,"applyBackgroundUpdates":1,"skinnable":true,"size":24301,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"42.0","maxVersion":"42.0"}],"targetPlatforms":[]}
1447491412018   addons.xpi  DEBUG   getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1447491412020   addons.xpi  DEBUG   New add-on fiddlerhook@fiddler2.com installed in winreg-app-global
1447491412030   addons.xpi  WARN    Disabling foreign installed add-on fiddlerhook@fiddler2.com in winreg-app-global
1447491412030   addons.xpi-utils    DEBUG   Make addon winreg-app-global:fiddlerhook@fiddler2.com visible
1447491412030   DeferredSave.extensions.json    DEBUG   Save changes
1447491412030   DeferredSave.extensions.json    DEBUG   Save changes
1447491412030   addons.xpi  DEBUG   Updating XPIState for {"id":"fiddlerhook@fiddler2.com","syncGUID":"mZKE2ni5yBIT","location":"winreg-app-global","version":"2.5.1.8","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":"chrome://fiddlerhook/content/about.xul","iconURL":"chrome://fiddlerhook/content/fiddlerhook.png","icon64URL":null,"defaultLocale":{"name":"FiddlerHook","description":"Integrate Fiddler into Firefox","creator":"Telerik","homepageURL":"https://fiddler2.com/r/?FIDDLERHOOKHELP"},"visible":true,"active":false,"userDisabled":true,"appDisabled":false,"descriptor":"C:\\Program Files (x86)\\Fiddler2\\FiddlerHook","installDate":1441879129965,"updateDate":1441879129965,"applyBackgroundUpdates":1,"bootstrap":false,"size":33903,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":true,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"4.0","maxVersion":"42.*"}],"targetPlatforms":[],"multiprocessCompatible":false,"signedState":0}
1447491412031   addons.xpi  DEBUG   Updating database with changes to installed add-ons
1447491412031   addons.xpi-utils    DEBUG   Updating add-on states
1447491412037   addons.xpi-utils    DEBUG   Writing add-ons list
1447491412059   addons.manager  DEBUG   Registering shutdown blocker for XPIProvider
1447491412059   addons.manager  DEBUG   Provider finished startup: XPIProvider
1447491412059   addons.manager  DEBUG   Starting provider: LightweightThemeManager
1447491412059   addons.manager  DEBUG   Registering shutdown blocker for LightweightThemeManager
1447491412059   addons.manager  DEBUG   Provider finished startup: LightweightThemeManager
1447491412060   addons.manager  DEBUG   Starting provider: GMPProvider
1447491412066   addons.manager  DEBUG   Registering shutdown blocker for GMPProvider
1447491412067   addons.manager  DEBUG   Provider finished startup: GMPProvider
1447491412067   addons.manager  DEBUG   Starting provider: PluginProvider
1447491412067   addons.manager  DEBUG   Registering shutdown blocker for PluginProvider
1447491412067   addons.manager  DEBUG   Provider finished startup: PluginProvider
1447491412068   addons.manager  DEBUG   Completed startup sequence

    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:122)
    at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:276)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:116)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:223)

解决方案

In my experience, Selenium Webdriver will not support latest versions of Firefox. Try downgrading to a fewer previous versions. You can try checking the CHANGELOG of Selenium, there they refer to some versions that will probably work.

Then, if you want a specific previous version of Firefox, go to their previous versions page.

这篇关于硒2.48.2 +火狐42 +浏览器没有得到实例化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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