org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
UG Make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd} visible
1434885895335 DeferredSave.extensions.json DEBUG Save changes
1434885895335 DeferredSave.extensions.json DEBUG Save changes
1434885895339 addons.xpi DEBUG Updating database with changes to installed add-ons
1434885895339 addons.xpi-utils DEBUG Updating add-on states
1434885895340 addons.xpi-utils DEBUG Writing add-ons list
1434885895345 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1434885895345 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1434885895346 addons.manager DEBUG Registering shutdown blocker for OpenH264Provider
1434885895347 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1434885896448 DeferredSave.extensions.json DEBUG Starting timer
1434885896476 addons.manager DEBUG shutdown
1434885896476 addons.manager DEBUG Calling shutdown blocker for XPIProvider
1434885896476 addons.xpi DEBUG shutdown
1434885896477 addons.xpi-utils DEBUG shutdown
1434885896477 addons.manager DEBUG Calling shutdown blocker for LightweightThemeManager
1434885896477 addons.manager DEBUG Calling shutdown blocker for OpenH264Provider
1434885896478 addons.manager DEBUG Calling shutdown blocker for PluginProvider
1434885896480 DeferredSave.extensions.json DEBUG Starting write
1434885896578 DeferredSave.extensions.json DEBUG Write succeeded
1434885896578 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 16
1434885896579 addons.xpi DEBUG Notifying XPI shutdown observers
1434885896581 addons.manager DEBUG Async provider shutdown done
1434885897100 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"]
1434885897102 addons.manager DEBUG Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"]
1434885897104 addons.xpi DEBUG startup
1434885897105 addons.xpi DEBUG Skipping unavailable install location app-system-local
1434885897105 addons.xpi DEBUG Skipping unavailable install location app-system-share
1434885897105 addons.xpi INFO Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to E:\Program Files (x86)\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}
1434885897106 addons.xpi INFO Mapping fxdriver@googlecode.com to C:\Users\闅哱AppData\Local\Temp\anonymous7491879212789964232webdriver-profile\extensions\fxdriver@googlecode.com
1434885897106 addons.xpi DEBUG Ignoring file entry whose name is not a valid add-on ID: C:\Users\闅哱AppData\Local\Temp\anonymous7491879212789964232webdriver-profile\extensions\webdriver-staging
1434885897106 addons.xpi DEBUG checkForChanges
1434885897112 addons.xpi DEBUG No changes found
1434885897115 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1434885897116 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1434885897117 addons.manager DEBUG Registering shutdown blocker for OpenH264Provider
1434885897117 addons.manager DEBUG Registering shutdown blocker for PluginProvider
System JS : ERROR file:///C:/Users/%E9%9A%86/AppData/Local/Temp/anonymous7491879212789964232webdriver-profile/extensions/fxdriver@googlecode.com/components/bad-cert-listener.js:1965 - NS_ERROR_FILE_ACCESS_DENIED: Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsILocalFile.createUnique]
System JS : ERROR file:///C:/Users/%E9%9A%86/AppData/Local/Temp/anonymous7491879212789964232webdriver-profile/extensions/fxdriver@googlecode.com/components/driver-component.js:11480 - NS_ERROR_XPC_GS_RETURNED_FAILURE: Component returned failure code: 0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE) [nsIJSCID.getService]
JavaScript error: chrome://fxdriver/content/server.js, line 38: NS_ERROR_XPC_CI_RETURNED_FAILURE: Component returned failure code: 0x80570015 (NS_ERROR_XPC_CI_RETURNED_FAILURE) [nsIJSCID.createInstance]
*** Blocklist::_preloadBlocklistFile: blocklist is disabled
1434885898758 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider>
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:118)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:246)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:114)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:193)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:186)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:182)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:95)
at tian.test1.test(test1.java:14)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)ss
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192) 作者: edwar172038 时间: 2015-6-21 21:40
报错在WebDriver driver = new FirefoxDriver();
此时火狐能启动 但就是走不下去了 求一大神指导下!!!作者: joykao 时间: 2015-6-22 11:54
你firefox版本和selenium版本兼容性有问题非常有可能的是你firefox版本较新,而selenium版本有点老作者: haoren1345 时间: 2015-6-29 16:27
你把的火狐浏览器的版本降低到29.0一下,就可以了作者: 此岸花开 时间: 2015-6-30 09:07
火狐低版本太难找了,还是提高selenium版本好点作者: alchaochao 时间: 2015-7-7 14:44
试试 selenium2.44+firefox24.0组合作者: zzhengjian 时间: 2015-7-22 23:15 本帖最后由 zzhengjian 于 2015-7-24 10:49 编辑
版本不兼容问题。参考这篇文章吧: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms http://www.webdriver.org/article-22-1.html作者: 喵的啦啦 时间: 2015-9-10 13:37
解决没啊,楼主。 我也遇到这个问题。作者: SunnyLan 时间: 2016-7-7 10:26
我是一启动火狐就浏览器崩溃