2015-02-10 106 views
0

从FireFox浏览器运行脚本时,页面上出现低于错误的信息,请咨询如何继续。无法在Mozilla Firefox浏览器中运行硒代码

版Firefox - 32.0.3 的Eclipse版本的Juno 1个 硒2.38罐 窗口8版

Error message throwing in the console is : 
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output: 
eferredSave.extensions.json DEBUG Starting write 
1423547733710 addons.xpi DEBUG shutdown 
1423547733710 addons.xpi-utils DEBUG shutdown 
1423547733764 DeferredSave.extensions.json DEBUG Write succeeded 
1423547733764 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 16 
1423547733764 addons.xpi DEBUG Notifying XPI shutdown observers 
1423547733767 addons.manager DEBUG Async provider shutdown done 
1423547734167 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"] 
1423547734168 addons.manager DEBUG Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"] 
1423547734169 addons.xpi DEBUG startup 
1423547734170 addons.xpi DEBUG Skipping unavailable install location app-system-local 
1423547734170 addons.xpi DEBUG Skipping unavailable install location app-system-share 
1423547734171 addons.xpi INFO Mapping {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A} to C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}.xpi 
1423547734171 addons.xpi INFO Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd} 
1423547734173 addons.xpi INFO Mapping [email protected] to C:\Users\PREMAN~1.S\AppData\Local\Temp\anonymous1824976243334194970webdriver-profile\extensions\[email protected] 
1423547734173 addons.xpi DEBUG Ignoring file entry whose name is not a valid add-on ID: C:\Users\PREMAN~1.S\AppData\Local\Temp\anonymous1824976243334194970webdriver-profile\extensions\webdriver-staging 
1423547734173 addons.xpi DEBUG checkForChanges 
1423547734195 addons.xpi DEBUG No changes found 
1423547734199 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}.xpi 
1423547734199 addons.xpi DEBUG Loading bootstrap scope from C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}.xpi 
1423547734205 addons.xpi DEBUG Calling bootstrap method startup on {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A} version 7.2.15747.10003 
*** Blocklist::_preloadBlocklistFile: blocklist is disabled 
console.error: skype_ff_extension: 
    DEPRECATED: The widget module is deprecated. Please consider using the sdk/ui module instead. 
Traceback (most recent call last): 
    File "resource://gre/modules/commonjs/sdk/addon/runner.js", line 114, in startup/< 
    run(options); 
    File "resource://gre/modules/commonjs/sdk/addon/runner.js", line 170, in run 
    let program = main(options.loader, options.main); 
    File "resource://gre/modules/commonjs/toolkit/loader.js", line 645, in main 
    return loader.load(loader, module).exports; 
    File "resource://gre/modules/commonjs/sdk/loader/cuddlefish.js", line 129, in CuddlefishLoader/options<.load 
    result = load(loader, module); 
    File "resource://gre/modules/commonjs/toolkit/loader.js", line 299, in load 
    evaluate(sandbox, module.uri); 
    File "resource://gre/modules/commonjs/toolkit/loader.js", line 262, in evaluate 
    : loadSubScript(uri, sandbox, encoding); 
    File "resource://skype_ff_extension-at-jetpack/skype_ff_extension/lib/main.js", line 14, in null 
    var widgets = require("sdk/widget"); 
    File "resource://gre/modules/commonjs/toolkit/loader.js", line 619, in require 
    freeze(load(loader, module)); 
    File "resource://gre/modules/commonjs/sdk/loader/cuddlefish.js", line 129, in CuddlefishLoader/options<.load 
    result = load(loader, module); 
    File "resource://gre/modules/commonjs/toolkit/loader.js", line 299, in load 
    evaluate(sandbox, module.uri); 
    File "resource://gre/modules/commonjs/toolkit/loader.js", line 262, in evaluate 
    : loadSubScript(uri, sandbox, encoding); 
    File "resource://gre/modules/commonjs/sdk/widget.js", line 60, in null 
    "The widget module is deprecated. " + 
    File "resource://gre/modules/commonjs/sdk/util/deprecate.js", line 18, in deprecateUsage 
    let stack = get().slice(2); 

    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:118) 
    at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:250) 
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:110) 
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:197) 
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:190) 
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:186) 
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:99) 
    at Demo.SetupTest(Demo.java:25) 
    at Demo.main(Demo.java:19) 
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: 
eferredSave.extensions.json DEBUG Starting write 
1423547733710 addons.xpi DEBUG shutdown 
1423547733710 addons.xpi-utils DEBUG shutdown 
1423547733764 DeferredSave.extensions.json DEBUG Write succeeded 
1423547733764 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 16 
1423547733764 addons.xpi DEBUG Notifying XPI shutdown observers 
1423547733767 addons.manager DEBUG Async provider shutdown done 
1423547734167 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"] 
1423547734168 addons.manager DEBUG Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"] 
1423547734169 addons.xpi DEBUG startup 
1423547734170 addons.xpi DEBUG Skipping unavailable install location app-system-local 
1423547734170 addons.xpi DEBUG Skipping unavailable install location app-system-share 
1423547734171 addons.xpi INFO Mapping {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A} to C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}.xpi 
1423547734171 addons.xpi INFO Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd} 
1423547734173 addons.xpi INFO Mapping [email protected] to C:\Users\PREMAN~1.S\AppData\Local\Temp\anonymous1824976243334194970webdriver-profile\extensions\[email protected] 
1423547734173 addons.xpi DEBUG Ignoring file entry whose name is not a valid add-on ID: C:\Users\PREMAN~1.S\AppData\Local\Temp\anonymous1824976243334194970webdriver-profile\extensions\webdriver-staging 
1423547734173 addons.xpi DEBUG checkForChanges 
1423547734195 addons.xpi DEBUG No changes found 
1423547734199 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}.xpi 
1423547734199 addons.xpi DEBUG Loading bootstrap scope from C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}.xpi 
1423547734205 addons.xpi DEBUG Calling bootstrap method startup on {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A} version 7.2.15747.10003 
*** Blocklist::_preloadBlocklistFile: blocklist is disabled 
console.error: skype_ff_extension: 
    DEPRECATED: The widget module is deprecated. Please consider using the sdk/ui module instead. 
Traceback (most recent call last): 
    File "resource://gre/modules/commonjs/sdk/addon/runner.js", line 114, in startup/< 
    run(options); 
    File "resource://gre/modules/commonjs/sdk/addon/runner.js", line 170, in run 
    let program = main(options.loader, options.main); 
    File "resource://gre/modules/commonjs/toolkit/loader.js", line 645, in main 
    return loader.load(loader, module).exports; 
    File "resource://gre/modules/commonjs/sdk/loader/cuddlefish.js", line 129, in CuddlefishLoader/options<.load 
    result = load(loader, module); 
    File "resource://gre/modules/commonjs/toolkit/loader.js", line 299, in load 
    evaluate(sandbox, module.uri); 
    File "resource://gre/modules/commonjs/toolkit/loader.js", line 262, in evaluate 
    : loadSubScript(uri, sandbox, encoding); 
    File "resource://skype_ff_extension-at-jetpack/skype_ff_extension/lib/main.js", line 14, in null 
    var widgets = require("sdk/widget"); 
    File "resource://gre/modules/commonjs/toolkit/loader.js", line 619, in require 
    freeze(load(loader, module)); 
    File "resource://gre/modules/commonjs/sdk/loader/cuddlefish.js", line 129, in CuddlefishLoader/options<.load 
    result = load(loader, module); 
    File "resource://gre/modules/commonjs/toolkit/loader.js", line 299, in load 
    evaluate(sandbox, module.uri); 
    File "resource://gre/modules/commonjs/toolkit/loader.js", line 262, in evaluate 
    : loadSubScript(uri, sandbox, encoding); 
    File "resource://gre/modules/commonjs/sdk/widget.js", line 60, in null 
    "The widget module is deprecated. " + 
    File "resource://gre/modules/commonjs/sdk/util/deprecate.js", line 18, in deprecateUsage 
    let stack = get().slice(2); 

Build info: version: '2.38.0', revision: 'bd32d4e', time: '2013-12-05 16:16:40' 
System info: host: 'EXIND3917', ip: '10.90.3.134', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.6.0_29' 
Driver info: driver.version: FirefoxDriver 
    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:130) 
    at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:250) 
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:110) 
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:197) 
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:190) 
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:186) 
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:99) 
    at Demo.SetupTest(Demo.java:25) 
    at Demo.main(Demo.java:19) 
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: 
eferredSave.extensions.json DEBUG Starting write 
1423547733710 addons.xpi DEBUG shutdown 
1423547733710 addons.xpi-utils DEBUG shutdown 
1423547733764 DeferredSave.extensions.json DEBUG Write succeeded 
1423547733764 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 16 
1423547733764 addons.xpi DEBUG Notifying XPI shutdown observers 
1423547733767 addons.manager DEBUG Async provider shutdown done 
1423547734167 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"] 
1423547734168 addons.manager DEBUG Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"] 
1423547734169 addons.xpi DEBUG startup 
1423547734170 addons.xpi DEBUG Skipping unavailable install location app-system-local 
1423547734170 addons.xpi DEBUG Skipping unavailable install location app-system-share 
1423547734171 addons.xpi INFO Mapping {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A} to C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}.xpi 
1423547734171 addons.xpi INFO Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd} 
1423547734173 addons.xpi INFO Mapping [email protected] to C:\Users\PREMAN~1.S\AppData\Local\Temp\anonymous1824976243334194970webdriver-profile\extensions\[email protected] 
1423547734173 addons.xpi DEBUG Ignoring file entry whose name is not a valid add-on ID: C:\Users\PREMAN~1.S\AppData\Local\Temp\anonymous1824976243334194970webdriver-profile\extensions\webdriver-staging 
1423547734173 addons.xpi DEBUG checkForChanges 
1423547734195 addons.xpi DEBUG No changes found 
1423547734199 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}.xpi 
1423547734199 addons.xpi DEBUG Loading bootstrap scope from C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}.xpi 
1423547734205 addons.xpi DEBUG Calling bootstrap method startup on {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A} version 7.2.15747.10003 
*** Blocklist::_preloadBlocklistFile: blocklist is disabled 
console.error: skype_ff_extension: 
    DEPRECATED: The widget module is deprecated. Please consider using the sdk/ui module instead. 
Traceback (most recent call last): 
    File "resource://gre/modules/commonjs/sdk/addon/runner.js", line 114, in startup/< 
    run(options); 
    File "resource://gre/modules/commonjs/sdk/addon/runner.js", line 170, in run 
    let program = main(options.loader, options.main); 
    File "resource://gre/modules/commonjs/toolkit/loader.js", line 645, in main 
    return loader.load(loader, module).exports; 
    File "resource://gre/modules/commonjs/sdk/loader/cuddlefish.js", line 129, in CuddlefishLoader/options<.load 
    result = load(loader, module); 
    File "resource://gre/modules/commonjs/toolkit/loader.js", line 299, in load 
    evaluate(sandbox, module.uri); 
    File "resource://gre/modules/commonjs/toolkit/loader.js", line 262, in evaluate 
    : loadSubScript(uri, sandbox, encoding); 
    File "resource://skype_ff_extension-at-jetpack/skype_ff_extension/lib/main.js", line 14, in null 
    var widgets = require("sdk/widget"); 
    File "resource://gre/modules/commonjs/toolkit/loader.js", line 619, in require 
    freeze(load(loader, module)); 
    File "resource://gre/modules/commonjs/sdk/loader/cuddlefish.js", line 129, in CuddlefishLoader/options<.load 
    result = load(loader, module); 
    File "resource://gre/modules/commonjs/toolkit/loader.js", line 299, in load 
    evaluate(sandbox, module.uri); 
    File "resource://gre/modules/commonjs/toolkit/loader.js", line 262, in evaluate 
    : loadSubScript(uri, sandbox, encoding); 
    File "resource://gre/modules/commonjs/sdk/widget.js", line 60, in null 
    "The widget module is deprecated. " + 
    File "resource://gre/modules/commonjs/sdk/util/deprecate.js", line 18, in deprecateUsage 
    let stack = get().slice(2); 

    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:118) 

请告知我要去的地方错了吗?

+0

请更新至硒2.43或以上。如果仍然发生,那么你可以通过清除系统上的所有firefox实例来检查,然后执行? – 2015-02-10 06:21:03

+0

[WebDriver Firefox驱动程序不工作]的可能重复(http://stackoverflow.com/questions/27655628/webdriver-firefox-driver-not-working) – 2015-02-10 06:21:46

+0

您可以查看此链接 - > https://developer.mozilla .org/en-US/Add-ons/SDK/High-Level_APIs/widget – 2015-02-10 07:17:55

回答

0

尝试使用更新的Selenium Jar文件。同时关闭FF的所有实例并清除%temp%文件夹。

+0

Shah ji先生,完成所有指定的步骤后,仍然面临同样的问题,它调用浏览器,但不去下一个脚本,连接池问题扔在页面上,如果我降级我的FF浏览器,它是否会解决我的问题? – prem 2015-02-10 07:02:13

+0

是的,尝试降级它。也请尝试将其安装在默认位置。同时确保您的系统中没有安装恶意软件,并将其安装为FF插件。这也可能会干扰你的执行。 – 2015-02-10 08:55:32

+0

谢谢Shah .... – prem 2015-02-10 09:03:55

0

试着在你的pom.xml更新硒

<dependencies> 
    <dependency> 
     <groupId>org.seleniumhq.selenium</groupId> 
     <artifactId>selenium-java</artifactId> 
     <version>2.40.0</version> 
    </dependency> 
0

你需要恢复到Firefox 34.0b11 它是与硒的webdriver 2.43.1

1)工作从控制面板卸载火狐

2)手动删除最新版本从程序文件(x86)的Firefox目录*重要*

3)从下面的自定义安装目录设置链接安装Firefox并取消静音更新

选项

这应该防止FireFox将自身更新为杀死WebDriver的下一个版本。它与FunnelCake32有关,但我不知道究竟是什么突破。

http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/34.0b11/win32/

相关问题