本文介绍了硒2.53.0与火狐46的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我是新来的硒,我用火狐46和执行非常简单的代码硒2.53.0 org.openqa.selenium.firefox.FirefoxDriver; pre $ public class test { public static void main(String [] args){ FirefoxDriver driver = new FirefoxDriver(); driver.get(http://google.com); $ b $ / code $ / pre $ b $ p 当我执行此代码时,我的Firefox浏览器打开,但它不打开google.com org。 openqa.selenium.firefox.NotConnectedException:45000毫秒后无法连接到端口7055上的主机127.0.0.1。 Firefox控制台输出:费SiteAdvisor Enterprise,description:null,creator:McAfee Inc., homepageURL : http://www.siteadvisor.com/ }, 可见 :真正的 主动 :假的, userDisabled :真实的, appDisabled :假的, 描述 : C:\ \程序文件(x86)\\\\\\\\\\\\\\\\\\\\\\\\\\\' 换肤功能:假的, 大小:349132, sourceURI:空, releaseNotesURI:空, softDisabled:假的, foreignInstall:真实的, hasBinaryComponents:假的, strictCompatibility:假区域设置 :[], targetApplications :[{ ID :{ec8030f7-C20A-464f-9b0e-13a3a9e97384} MINVERSION: 15.0, MAXVERSION: 47.0}], targetPlatforms :[],multiprocessCompatible:false,signedState:2,seen:true} 1490946675982 DeferredSave.extensions.json DEBUG保存更改 1490946675982 addons.xpi DEBUG使用更改更新数据库安装附加组件 1490946675983 addons.xpi-utils DEBUG更新附加组件状态 1490946675988 addons.xpi-utils DEBUG编写附加组件列表 1490946676009 addons.xpi DEBUG注册C :\ Program Files(x86)\Mozilla Firefox\\browser\features\[email protected] 1490946676010 addons.xpi DEBUG在[email protected]上调用bootstrap方法启动版本1.0 1490946676010 addons.xpi DEBUG注册C:\程序文件(x86)清单\ Mozilla Firefox浏览器Firefox浏览器Firefox浏览器调用引导方法启动[email protected]版本1.0.2 1490946676013 addons.xpi DEBUG注册清单为C:\程序文件(x86)\Mozilla Firefox \ browser \features\[email protected]。 xpi 1490946676015 addons.xpi DEBUG在[email protected]上调用启动方法启动版本1.3.2 1490946676032 addons.xpi DEBUG为C:\程序文件(x86)注册清单\Mozilla Firefox\\browser\features\[email protected] 1490946676033插件.xpi DEBUG在[email protected]上调用引导方法启动版本1.0 1490946676036 addons.manager DEBUG注册XPIProvider的关闭拦截器 1490946676038 addons.manager DEBUG提供者完成启动:XPIProvider 1490946676038插件。经理DEBUG开始提供者: LightweightThemeManager 1490946676038 addons.manager DEBUG注册LightweightThemeManager的关闭拦截器 1490946676038 addons.manager DEBUG提供者完成启动:LightweightThemeManager 1490946676039 addons.manager DEBUG起始提供者: GMPProvider 1490946676045 addons.manager DEBUG注册GMPProvider的关闭拦截器 1490946676046 addons.manager DEBUG提供者f已删除的启动:GMPProvider 1490946676046 addons.manager DEBUG启动提供程序:PluginProvider 1490946676046 addons.manager DEBUG注册PluginProvider的关闭阻止程序 1490946676046 addons.manager DEBUG提供程序启动完成:PluginProvider 1490946676046 addons.manager DEBUG完成启动顺序 1490946677662 addons.manager DEBUG启动提供程序:< unnamed-provider> 1490946677662 addons.manager DEBUG注册< unnamed-provider>的关闭拦截器 1490946677663 addons.manager DEBUG提供程序完成启动:< unnamed-provider> 1490946677955 DeferredSave.extensions.json DEBUG写入成功 1490946677955 addons.xpi-utils DEBUG XPI数据库已保存,将模式版本首选项设置为17 1490946677955 DeferredSave.extensions.json DEBUG启动计时器 1490946678047 DeferredSave.extensions.json DEBUG开始写入 1490946678069 addons.repository DEBUG找不到addons.json。 1490946678070 DeferredSave.addons.json DEBUG保存更改 1490946678075 DeferredSave.addons.json DEBUG启动计时器 1490946678174 addons.manager DEBUG启动提供程序:PreviousExperimentProvider 1490946678174 addons.manager DEBUG注册关闭Blocker for PreviousExperimentProvider 1490946678174 addons.manager DEBUG提供程序完成启动:PreviousExperimentProvider 1490946678177 DeferredSave.addons.json DEBUG开始写入 1490946678192 DeferredSave.extensions.json DEBUG写入成功 1490946678224 DeferredSave。 addons.json DEBUG在org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:112)处写入成功 org.openqa.selenium.firefox.FirefoxDriver 。 startClient(FirefoxDriver.java:271) at org.openqa.selenium.remote.RemoteWebDriver。< init>(RemoteWebDriver.java:119) at org.openqa.sel < init>(FirefoxDriver.java:218) at org.openqa.selenium.firefox.FirefoxDriver。< init>(FirefoxDriver.java:211) at org。 < init>(FirefoxDriver.java:207) at org.openqa.selenium.firefox.FirefoxDriver。< init>(FirefoxDriver.java:120) at test.main(test.java:7)线程main中的异常org.openqa.selenium.WebDriverException:无法连接到二进制FirefoxBinary(C:\程序文件(x86)\Mozilla Firefox\ firefox.exe)在端口7055;过程输出如下:费用SiteAdvisor Enterprise,description:null,creator:McAfee Inc.,homepageURL:http://www.siteadvisor.com/},visible :true,active:false,userDisabled:true,appDisabled:false,descriptor:C:\\Program Files(x86)\\\\\\\\\\\\\\ \saeffplg.xpi installDate:1455580102000 updateDate:1455580102000 applyBackgroundUpdates:1, 引导:假 换肤的:假, 尺寸:349132 sourceURI:NULL, releaseNotesURI :空, softDisabled :假的, foreignInstall :真实的, hasBinaryComponents :假的, strictCompatibility :假的, 语言环境 :[], targetApplications :[{ ID :{ec8030f7- C20A-464f-9b0e-13a3a9e97384}, MINVERSION: 15.0, MAXVERSION: 47.0}], targetPlatforms:[], multiprocessCompatible:假 signedState:2, 看到 :true} 1490946675982 DeferredSave.extensions.json DEBUG保存更改 1490946675982 addons.xpi DEBUG更新数据库,更改已安装的加载项 14909466759 83 addons.xpi-utils DEBUG更新附加状态 1490946675988 addons.xpi-utils DEBUG编写附加组件列表 1490946676009 addons.xpi DEBUG注册C:\程序文件(x86)的清单\\ \\ Mozilla Firefox浏览器\\ browser \features\[email protected] 1490946676010 addons.xpi DEBUG在[email protected]上调用启动引导方法1.0版 1490946676010 addons.xpi DEBUG注册清单对于C:\程序文件(x86)\ Mozilla Firefox浏览器\特征\ [email protected] 1490946676012 addons.xpi DEBUG调用bootstrap方法启动[email protected]版本1.0 .2 1490946676013 addons.xpi DEBUG注册C:\程序文件(x86)的清单\Mozilla Firefox\\browser\features\[email protected] 1490946676015 addons.xpi DEBUG在[email protected]版本1.3.2上调用引导方法启动 1490946676032 add ons.xpi DEBUG注册C:\程序文件(x86)的清单\ Mozilla Firefox浏览器Firefox浏览器Firefox浏览器Firefox浏览器调用启动websensehelper启动方法@ mozilla.org版本1.0 1490946676036 addons.manager DEBUG注册XPIProvider的关闭拦截器 1490946676038 addons.manager DEBUG提供者完成启动:XPIProvider 1490946676038 addons.manager DEBUG开始提供者:LightweightThemeManager 1490946676038 addons.manager DEBUG注册LightweightThemeManager的关闭阻止程序 1490946676038 addons.manager DEBUG提供程序完成启动:LightweightThemeManager 1490946676039 addons.manager DEBUG启动提供程序:GMPProvider 1490946676045 addons.manager DEBUG注册关闭阻止程序为GMPProvider 1490946676046 addons.manager DEBUG提供程序完成启动:GMPProvider 1490946676046 addons.manager DEBUG开始提供程序:PluginProvider 1490946676046 addons.manager DEBUG注册PluginProvider的关闭阻止程序 1490946676046 addons.manager DEBUG提供程序完成启动:PluginProvider 1490946676046 addons.manager DEBUG完成启动顺序 1490946677662 addons.manager DEBUG开始提供程序:< unnamed-provider> 1490946677662 addons.manager DEBUG注册< unnamed-provider>的关闭拦截器 1490946677663 addons.manager DEBUG提供程序完成启动:< unnamed-provider> 1490946677955 DeferredSave.extensions.json DEBUG写入成功 1490946677955 addons.xpi-utils DEBUG XPI数据库已保存,将模式版本首选项设置为17 1490946677955 DeferredSave.extensions.json DEBUG启动计时器 1490946678047 DeferredSave.extensions.json DEBUG开始写入 1490946678069 addons.repository DEBUG找不到addons.json。 1490946678070 DeferredSave.addons.json DEBUG保存更改 1490946678075 DeferredSave.addons.json DEBUG启动计时器 1490946678174 addons.manager DEBUG启动提供程序:PreviousExperimentProvider 1490946678174 addons.manager DEBUG注册关闭Blocker for PreviousExperimentProvider 1490946678174 addons.manager DEBUG提供程序完成启动:PreviousExperimentProvider 1490946678177 DeferredSave.addons.json DEBUG开始写入 1490946678192 DeferredSave.extensions.json DEBUG写入成功 1490946678224 DeferredSave。 addons.json DEBUG写入成功 构建信息:版本:'2.53.0',修订:'35ae25b',时间:'2016-03-15 16:57:40'系统info:host:'EQ-EQ5000787',ip:'10 .237.211.31',os.name:'Windows 7',os.arch:'amd64',os.version:'6.1',java.version:'1.8。 0_91'驱动程序信息:driver.version:FirefoxDriver 在org.openq a.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:124) at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271) at org.openqa。 < init>(FirefoxDriver.java:218) at org.openqa.selenium.firefox.FirefoxDriver。< init>(FirefoxDriver.java:218) at org.openqa.selenium.firefox.FirefoxDriver。 < init>(FirefoxDriver.java:211) at org.openqa.selenium.firefox.FirefoxDriver。< init>(FirefoxDriver.java:207) at < init>(FirefoxDriver.java:120) at test.main(test.java:7)导致:org.openqa.selenium.firefox .NotConnectedException:无法在45000 ms后连接到端口7055上的主机127.0.0.1。 Firefox控制台输出:费SiteAdvisor Enterprise,description:null,creator:McAfee Inc.,homepageURL:http://www.siteadvisor.com/},visible :true,active:false,userDisabled:true,appDisabled:false,descriptor:C:\\Program Files(x86)\\\\\\\\\\\\\\ \saeffplg.xpi installDate:1455580102000 updateDate:1455580102000 applyBackgroundUpdates:1, 引导:假 换肤的:假, 尺寸:349132 sourceURI:NULL, releaseNotesURI :空, softDisabled :假的, foreignInstall :真实的, hasBinaryComponents :假的, strictCompatibility :假的, 语言环境 :[], targetApplications :[{ ID :{ec8030f7- C20A-464f-9b0e-13a3a9e97384}, MINVERSION: 15.0, MAXVERSION: 47.0}], targetPlatforms:[], multiprocessCompatible:假 signedState:2, 看到 :true} 1490946675982 DeferredSave.extensions.json DEBUG保存更改 1490946675982 addons.xpi DEBUG更新数据库,更改已安装的附加组件 149094667598 3 addons.xpi-utils DEBUG更新附加状态 1490946675988 addons.xpi-utils DEBUG编写附加组件列表 1490946676009 addons.xpi DEBUG注册C:\程序文件(x86)的清单\\ \\ Mozilla Firefox浏览器\\ browser \features\[email protected] 1490946676010 addons.xpi DEBUG在[email protected]上调用启动引导方法1.0版 1490946676010 addons.xpi DEBUG注册清单对于C:\程序文件(x86)\ Mozilla Firefox浏览器\特征\ [email protected] 1490946676012 addons.xpi DEBUG调用bootstrap方法启动[email protected]版本1.0 .2 1490946676013 addons.xpi DEBUG注册C:\程序文件(x86)的清单\Mozilla Firefox\\browser\features\[email protected] 1490946676015 addons.xpi DEBUG在[email protected]版本1.3.2上调用引导方法启动 1490946676032 addo ns.xpi DEBUG为C:\程序文件(x86)注册清单\ Mozilla Firefox浏览器Firefox浏览器Firefox浏览器调用引导启动websensehelper @ mozilla.org版本1.0 1490946676036 addons.manager DEBUG注册XPIProvider的关闭拦截器 1490946676038 addons.manager DEBUG提供者完成启动:XPIProvider 1490946676038 addons.manager DEBUG开始提供者:LightweightThemeManager 1490946676038 addons.manager DEBUG注册LightweightThemeManager的关闭阻止程序 1490946676038 addons.manager DEBUG提供程序完成启动:LightweightThemeManager 1490946676039 addons.manager DEBUG启动提供程序:GMPProvider 1490946676045 addons.manager DEBUG注册关闭阻止程序为GMPProvider 1490946676046 addons.manager DEBUG提供程序完成启动:GMPProvider 1490946676046 addons.manager DEBUG开始提供程序:PluginProvider 1490946676046 addons.manager DEBUG注册PluginProvider的关闭阻止程序 1490946676046 addons.manager DEBUG提供程序完成启动:PluginProvider 1490946676046 addons.manager DEBUG完成启动顺序 1490946677662 addons.manager DEBUG开始提供程序:< unnamed-provider> 1490946677662 addons.manager DEBUG注册< unnamed-provider>的关闭拦截器 1490946677663 addons.manager DEBUG提供程序完成启动:< unnamed-provider> 1490946677955 DeferredSave.extensions.json DEBUG写入成功 1490946677955 addons.xpi-utils DEBUG XPI数据库已保存,将模式版本首选项设置为17 1490946677955 DeferredSave.extensions.json DEBUG启动计时器 1490946678047 DeferredSave.extensions.json DEBUG开始写入 1490946678069 addons.repository DEBUG找不到addons.json。 1490946678070 DeferredSave.addons.json DEBUG保存更改 1490946678075 DeferredSave.addons.json DEBUG启动计时器 1490946678174 addons.manager DEBUG启动提供程序:PreviousExperimentProvider 1490946678174 addons.manager DEBUG注册关闭Blocker for PreviousExperimentProvider 1490946678174 addons.manager DEBUG提供程序完成启动:PreviousExperimentProvider 1490946678177 DeferredSave.addons.json DEBUG开始写入 1490946678192 DeferredSave.extensions.json DEBUG写入成功 1490946678224 DeferredSave。 addons.json DEBUG写入成功 在org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:112) ... 7 more $ p $ b pre $ b 谢谢很多解决方案从你得到的例外,我可以理解,关闭你的Macfee防火墙并使用这段代码来调用firefox驱动程序。 $ b 文件pathToBinary = new File(C:\\Mozilla Firefox\ \firefox.exe); FirefoxBinary ffBinary = new FirefoxBinary(pathToBinary); FirefoxProfile firefoxProfile = new FirefoxProfile(); driver = new FirefoxDriver(ffBinary,firefoxProfile); I am new to selenium and I am using selenium 2.53.0 with firefox 46 and executing very simple codeimport org.openqa.selenium.firefox.FirefoxDriver;public class test {public static void main(String[] args) { FirefoxDriver driver=new FirefoxDriver(); driver.get("http://google.com");}}when I execute this code ,my firefox browser opens but it doesnot open the "google.com" org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output: fee SiteAdvisor Enterprise","description":null,"creator":"McAfee Inc.","homepageURL":"http://www.siteadvisor.com/"},"visible":true,"active":false,"userDisabled":true,"appDisabled":false,"descriptor":"C:\\Program Files (x86)\\McAfee\\SiteAdvisor Enterprise\\saeffplg.xpi","installDate":1455580102000,"updateDate":1455580102000,"applyBackgroundUpdates":1,"bootstrap":false,"skinnable":false,"size":349132,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":true,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"15.0","maxVersion":"47.0"}],"targetPlatforms":[],"multiprocessCompatible":false,"signedState":2,"seen":true}1490946675982 DeferredSave.extensions.json DEBUG Save changes1490946675982 addons.xpi DEBUG Updating database with changes to installed add-ons1490946675983 addons.xpi-utils DEBUG Updating add-on states1490946675988 addons.xpi-utils DEBUG Writing add-ons list1490946676009 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\[email protected] addons.xpi DEBUG Calling bootstrap method startup on [email protected] version 1.01490946676010 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\[email protected] addons.xpi DEBUG Calling bootstrap method startup on [email protected] version 1.0.21490946676013 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\[email protected] addons.xpi DEBUG Calling bootstrap method startup on [email protected] version 1.3.21490946676032 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\[email protected] addons.xpi DEBUG Calling bootstrap method startup on [email protected] version 1.01490946676036 addons.manager DEBUG Registering shutdown blocker for XPIProvider1490946676038 addons.manager DEBUG Provider finished startup: XPIProvider1490946676038 addons.manager DEBUG Starting provider: LightweightThemeManager1490946676038 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager1490946676038 addons.manager DEBUG Provider finished startup: LightweightThemeManager1490946676039 addons.manager DEBUG Starting provider: GMPProvider1490946676045 addons.manager DEBUG Registering shutdown blocker for GMPProvider1490946676046 addons.manager DEBUG Provider finished startup: GMPProvider1490946676046 addons.manager DEBUG Starting provider: PluginProvider1490946676046 addons.manager DEBUG Registering shutdown blocker for PluginProvider1490946676046 addons.manager DEBUG Provider finished startup: PluginProvider1490946676046 addons.manager DEBUG Completed startup sequence1490946677662 addons.manager DEBUG Starting provider: <unnamed-provider>1490946677662 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider>1490946677663 addons.manager DEBUG Provider finished startup: <unnamed-provider>1490946677955 DeferredSave.extensions.json DEBUG Write succeeded1490946677955 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 171490946677955 DeferredSave.extensions.json DEBUG Starting timer1490946678047 DeferredSave.extensions.json DEBUG Starting write1490946678069 addons.repository DEBUG No addons.json found.1490946678070 DeferredSave.addons.json DEBUG Save changes1490946678075 DeferredSave.addons.json DEBUG Starting timer1490946678174 addons.manager DEBUG Starting provider: PreviousExperimentProvider1490946678174 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider1490946678174 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider1490946678177 DeferredSave.addons.json DEBUG Starting write1490946678192 DeferredSave.extensions.json DEBUG Write succeeded1490946678224 DeferredSave.addons.json DEBUG Write succeeded at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:112) at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271) at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:119) at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:218) at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211) at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:207) at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:120) at test.main(test.java:7)Exception in thread "main" org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files (x86)\Mozilla Firefox\firefox.exe) on port 7055; process output follows: fee SiteAdvisor Enterprise","description":null,"creator":"McAfee Inc.","homepageURL":"http://www.siteadvisor.com/"},"visible":true,"active":false,"userDisabled":true,"appDisabled":false,"descriptor":"C:\\Program Files (x86)\\McAfee\\SiteAdvisor Enterprise\\saeffplg.xpi","installDate":1455580102000,"updateDate":1455580102000,"applyBackgroundUpdates":1,"bootstrap":false,"skinnable":false,"size":349132,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":true,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"15.0","maxVersion":"47.0"}],"targetPlatforms":[],"multiprocessCompatible":false,"signedState":2,"seen":true}1490946675982 DeferredSave.extensions.json DEBUG Save changes1490946675982 addons.xpi DEBUG Updating database with changes to installed add-ons1490946675983 addons.xpi-utils DEBUG Updating add-on states1490946675988 addons.xpi-utils DEBUG Writing add-ons list1490946676009 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\[email protected] addons.xpi DEBUG Calling bootstrap method startup on [email protected] version 1.01490946676010 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\[email protected] addons.xpi DEBUG Calling bootstrap method startup on [email protected] version 1.0.21490946676013 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\[email protected] addons.xpi DEBUG Calling bootstrap method startup on [email protected] version 1.3.21490946676032 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\[email protected] addons.xpi DEBUG Calling bootstrap method startup on [email protected] version 1.01490946676036 addons.manager DEBUG Registering shutdown blocker for XPIProvider1490946676038 addons.manager DEBUG Provider finished startup: XPIProvider1490946676038 addons.manager DEBUG Starting provider: LightweightThemeManager1490946676038 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager1490946676038 addons.manager DEBUG Provider finished startup: LightweightThemeManager1490946676039 addons.manager DEBUG Starting provider: GMPProvider1490946676045 addons.manager DEBUG Registering shutdown blocker for GMPProvider1490946676046 addons.manager DEBUG Provider finished startup: GMPProvider1490946676046 addons.manager DEBUG Starting provider: PluginProvider1490946676046 addons.manager DEBUG Registering shutdown blocker for PluginProvider1490946676046 addons.manager DEBUG Provider finished startup: PluginProvider1490946676046 addons.manager DEBUG Completed startup sequence1490946677662 addons.manager DEBUG Starting provider: <unnamed-provider>1490946677662 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider>1490946677663 addons.manager DEBUG Provider finished startup: <unnamed-provider>1490946677955 DeferredSave.extensions.json DEBUG Write succeeded1490946677955 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 171490946677955 DeferredSave.extensions.json DEBUG Starting timer1490946678047 DeferredSave.extensions.json DEBUG Starting write1490946678069 addons.repository DEBUG No addons.json found.1490946678070 DeferredSave.addons.json DEBUG Save changes1490946678075 DeferredSave.addons.json DEBUG Starting timer1490946678174 addons.manager DEBUG Starting provider: PreviousExperimentProvider1490946678174 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider1490946678174 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider1490946678177 DeferredSave.addons.json DEBUG Starting write1490946678192 DeferredSave.extensions.json DEBUG Write succeeded1490946678224 DeferredSave.addons.json DEBUG Write succeededBuild info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 16:57:40'System info: host: 'EQ-EQ5000787', ip: '10.237.211.31', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_91'Driver info: driver.version: FirefoxDriver at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:124) at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271) at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:119) at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:218) at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211) at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:207) at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:120) at test.main(test.java:7)Caused by: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:fee SiteAdvisor Enterprise","description":null,"creator":"McAfee Inc.","homepageURL":"http://www.siteadvisor.com/"},"visible":true,"active":false,"userDisabled":true,"appDisabled":false,"descriptor":"C:\\Program Files (x86)\\McAfee\\SiteAdvisor Enterprise\\saeffplg.xpi","installDate":1455580102000,"updateDate":1455580102000,"applyBackgroundUpdates":1,"bootstrap":false,"skinnable":false,"size":349132,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":true,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"15.0","maxVersion":"47.0"}],"targetPlatforms":[],"multiprocessCompatible":false,"signedState":2,"seen":true}1490946675982 DeferredSave.extensions.json DEBUG Save changes1490946675982 addons.xpi DEBUG Updating database with changes to installed add-ons1490946675983 addons.xpi-utils DEBUG Updating add-on states1490946675988 addons.xpi-utils DEBUG Writing add-ons list1490946676009 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\[email protected] addons.xpi DEBUG Calling bootstrap method startup on [email protected] version 1.01490946676010 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\[email protected] addons.xpi DEBUG Calling bootstrap method startup on [email protected] version 1.0.21490946676013 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\[email protected] addons.xpi DEBUG Calling bootstrap method startup on [email protected] version 1.3.21490946676032 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\[email protected] addons.xpi DEBUG Calling bootstrap method startup on [email protected] version 1.01490946676036 addons.manager DEBUG Registering shutdown blocker for XPIProvider1490946676038 addons.manager DEBUG Provider finished startup: XPIProvider1490946676038 addons.manager DEBUG Starting provider: LightweightThemeManager1490946676038 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager1490946676038 addons.manager DEBUG Provider finished startup: LightweightThemeManager1490946676039 addons.manager DEBUG Starting provider: GMPProvider1490946676045 addons.manager DEBUG Registering shutdown blocker for GMPProvider1490946676046 addons.manager DEBUG Provider finished startup: GMPProvider1490946676046 addons.manager DEBUG Starting provider: PluginProvider1490946676046 addons.manager DEBUG Registering shutdown blocker for PluginProvider1490946676046 addons.manager DEBUG Provider finished startup: PluginProvider1490946676046 addons.manager DEBUG Completed startup sequence1490946677662 addons.manager DEBUG Starting provider: <unnamed-provider>1490946677662 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider>1490946677663 addons.manager DEBUG Provider finished startup: <unnamed-provider>1490946677955 DeferredSave.extensions.json DEBUG Write succeeded1490946677955 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 171490946677955 DeferredSave.extensions.json DEBUG Starting timer1490946678047 DeferredSave.extensions.json DEBUG Starting write1490946678069 addons.repository DEBUG No addons.json found.1490946678070 DeferredSave.addons.json DEBUG Save changes1490946678075 DeferredSave.addons.json DEBUG Starting timer1490946678174 addons.manager DEBUG Starting provider: PreviousExperimentProvider1490946678174 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider1490946678174 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider1490946678177 DeferredSave.addons.json DEBUG Starting write1490946678192 DeferredSave.extensions.json DEBUG Write succeeded1490946678224 DeferredSave.addons.json DEBUG Write succeeded at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:112) ... 7 moreWhat can i do make my firefox working again.?Thanks a lot 解决方案 From the exception you got, I could understand that turn off you Macfee firewall and use this piece of code for invoking firefox driver. Let me know if there is any issue. File pathToBinary = new File("C:\\Mozilla Firefox\\firefox.exe"); FirefoxBinary ffBinary = new FirefoxBinary(pathToBinary); FirefoxProfile firefoxProfile = new FirefoxProfile(); driver = new FirefoxDriver(ffBinary,firefoxProfile); 这篇关于硒2.53.0与火狐46的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 09-22 01:46