Firefox 32.0 does not work with Selenium.
When Firefox automatically updated to 32.0, Selenium stopped being able to connect with it. The output is below. If I reinstall version 31, Selenium works fine until the automatic update occurs again.
Therefore I also need to know how to prevent the automatic update.
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output: se saved, setting schema version preference to 16 1409799202927 addons.xpi DEBUG Notifying XPI shutdown observers 1409799202929 addons.manager DEBUG Async provider shutdown done 1409799203328 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"] 1409799203329 addons.manager DEBUG Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"] 1409799203331 addons.xpi DEBUG startup 1409799203331 addons.xpi DEBUG Skipping unavailable install location app-system-local 1409799203331 addons.xpi DEBUG Skipping unavailable install location app-system-share 1409799203332 addons.xpi INFO Mapping {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A} to C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}.xpi 1409799203332 addons.xpi INFO Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd} 1409799203332 addons.xpi WARN Ignoring missing add-on in C:\Program Files (x86)\Social Privacy\FF 1409799203333 addons.xpi INFO Mapping fxdriver@googlecode.com to C:\Users\User\AppData\Local\Temp\anonymous8654918393034030246webdriver-profile\extensions\fxdriver@googlecode.com 1409799203333 addons.xpi DEBUG Ignoring file entry whose name is not a valid add-on ID: C:\Users\User\AppData\Local\Temp\anonymous8654918393034030246webdriver-profile\extensions\webdriver-staging 1409799203333 addons.xpi DEBUG checkForChanges 1409799203338 addons.xpi DEBUG No changes found 1409799203340 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}.xpi 1409799203341 addons.xpi DEBUG Loading bootstrap scope from C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}.xpi 1409799203344 addons.xpi DEBUG Calling bootstrap method startup on {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A} version 7.3.16540.9015
- 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);
JavaScript error: resource://skype_ff_extension-at-jetpack/skype_ff_extension/data/c2c_options_menu_localization.js, line 189: document.getElementById(...) is null
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) ... 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: se saved, setting schema version preference to 16 1409799202927 addons.xpi DEBUG Notifying XPI shutdown observers 1409799202929 addons.manager DEBUG Async provider shutdown done 1409799203328 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"] 1409799203329 addons.manager DEBUG Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"] 1409799203331 addons.xpi DEBUG startup 1409799203331 addons.xpi DEBUG Skipping unavailable install location app-system-local 1409799203331 addons.xpi DEBUG Skipping unavailable install location app-system-share 1409799203332 addons.xpi INFO Mapping {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A} to C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}.xpi 1409799203332 addons.xpi INFO Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd} 1409799203332 addons.xpi WARN Ignoring missing add-on in C:\Program Files (x86)\Social Privacy\FF 1409799203333 addons.xpi INFO Mapping fxdriver@googlecode.com to C:\Users\User\AppData\Local\Temp\anonymous8654918393034030246webdriver-profile\extensions\fxdriver@googlecode.com 1409799203333 addons.xpi DEBUG Ignoring file entry whose name is not a valid add-on ID: C:\Users\User\AppData\Local\Temp\anonymous8654918393034030246webdriver-profile\extensions\webdriver-staging 1409799203333 addons.xpi DEBUG checkForChanges 1409799203338 addons.xpi DEBUG No changes found 1409799203340 addons.xpi DEBUG Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}.xpi 1409799203341 addons.xpi DEBUG Loading bootstrap scope from C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}.xpi 1409799203344 addons.xpi DEBUG Calling bootstrap method startup on {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A} version 7.3.16540.9015
- 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);
JavaScript error: resource://skype_ff_extension-at-jetpack/skype_ff_extension/data/c2c_options_menu_localization.js, line 189: document.getElementById(...) is null
Build info: version: '2.42.2', revision: '6a6995d', time: '2014-06-03 17:42:30' System info: host: 'Y510P', ip: '192.168.1.12', os.name: 'Windows 8', os.arch: 'amd64', os.version: '6.2', java.version: '1.7.0_45' Driver info: driver.version: WDriver at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:130) at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:246) at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:114) ...
Tutte le risposte (1)
I am using python 3.3 and Selenium 2.42.1 and Forefox 32.0. When I launch the FF web browser from python I get the following error:
>>> driver = webdriver.Firefox() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Python33\lib\site-packages\selenium-2.42.1-py3.3.egg\selenium\webdriver\firefox\webdriver.py", line 59, in __ init__ self.binary, timeout), File "C:\Python33\lib\site-packages\selenium-2.42.1-py3.3.egg\selenium\webdriver\firefox\extension_connection.py", lin e 47, in __init__ self.binary.launch_browser(self.profile) File "C:\Python33\lib\site-packages\selenium-2.42.1-py3.3.egg\selenium\webdriver\firefox\firefox_binary.py", line 61, in launch_browser self._wait_until_connectable() File "C:\Python33\lib\site-packages\selenium-2.42.1-py3.3.egg\selenium\webdriver\firefox\firefox_binary.py", line 105, in _wait_until_connectable self.profile.path, self._get_firefox_output())) '''selenium.common.exceptions.WebDriverException: Message: 'Can\'t load the profile. Profile Dir: c:\\users\\sl004146\\appd ata\\local\\temp\\tmp3mrkxk ''' Firefox output: b\'1409815591468\\taddons.manager\\tDEBUG\\tLoaded provider scope for resour ce://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"]\\r\\n1409815591472\\taddons.manager\\tDEBUG\\tLoaded provider s cope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"]\\r\\n1409815591475\\taddons.xpi \\tDEBUG\\tstartup\\r\\n1409815591476\\taddons.xpi\\tWARN\\tIgnoring missing add-on in C:\\\\Program Files\\\\SearchPred ict\\\\PRFireFox\\r\\n1409815591477\\taddons.xpi\\tWARN\\tIgnoring missing add-on in C:\\\\Program Files\\\\SpeedBit Vid eo Downloader\\\\SPFireFox\\r\\n1409815591477\\taddons.xpi\\tINFO\\tMapping {D19CA586-DD6C-4a0a-96F8-14644F340D60} to C: \\\\Program Files\\\\Common Files\\\\McAfee\\\\SystemCore\\r\\n1409815591478\\taddons.xpi\\tDEBUG\\tSkipping unavailable install location app-system-local\\r\\n1409815591478\\taddons.xpi\\tDEBUG\\tSkipping unavailable install location app-s ystem-share\\r\\n1409815591479\\taddons.xpi\\tINFO\\tMapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\\\\Program Fil es\\\\Mozilla Firefox\\\\browser\\\\extensions\\\\{972ce4c6-7e08-4474-a285-3208198ce6fd}\\r\\n1409815591481\\taddons.xpi \\tINFO\\tMapping gencrawler@some.com to C:\\\\Users\\\\sl004146\\\\AppData\\\\Roaming\\\\Mozilla\\\\Extensions\\\\{ec80 30f7-c20a-464f-9b0e-13a3a9e97384}\\\\gencrawler@some.com\\r\\n1409815591482\\taddons.xpi\\tINFO\\tMapping fxdriver@googl ecode.com to c:\\\\users\\\\sl004146\\\\appdata\\\\local\\\\temp\\\\tmp3mrkxk\\\\extensions\\\\fxdriver@googlecode.com\\ r\\n1409815591483\\taddons.xpi\\tDEBUG\\tcheckForChanges\\r\\n1409815591524\\taddons.xpi\\tDEBUG\\tNo changes found\\r\\ n*** Blocklist::_preloadBlocklistFile: blocklist is disabled\\r\\nJavaScript error: chrome://browser/content/urlbarBindi ngs.xml, line 677: aUrl is undefined\\r\\nJavaScript error: chrome://browser/content/urlbarBindings.xml, line 677: aUrl is undefined\\r\\n\'' >>>
Tried deleting and creating a new FF profile but still keep getting the error. The only option I see is to downgrade to an older version (haven't tried it yet!)
Modificato da cor-el il