I'm using Selenium-java 2.46.0 and Firefox 38.0.5 but when I launch firefox using selenium like - WebDriver driver = new FirefoxDriver();
Opening of firefox fails with 'Firefox has stopped working' popup:
However if I open firefox manually, there is no issue.
Could you please help me to understand what could be wrong here and how this can be resolved?
It gives following error:
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:
BUG Save changes
1435762652130 addons.xpi DEBUG Updating XPIState for {"id":"{D19CA586-DD6C-4a0a-96F8-14644F340D60}","syncGUID":"e6CXkfz5RFLW","location":"winreg-app-global","version":"IDS_SS_VERSION","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"iconURL":"chrome://vscore/content/ScriptFF.gif","icon64URL":null,"defaultLocale":{"name":"IDS_SS_NAME","description":null,"creator":"McAfee, Inc.","homepageURL":null},"visible":true,"active":false,"userDisabled":true,"appDisabled":false,"descriptor":"C:\\Program Files (x86)\\Common Files\\McAfee\\SystemCore","installDate":1401346981596,"updateDate":1401346981596,"applyBackgroundUpdates":1,"bootstrap":false,"size":1724679,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":true,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"1.5","maxVersion":"9.9"}],"targetPlatforms":[],"multiprocessCompatible":false}
1435762652131 addons.xpi DEBUG Updating database with changes to installed add-ons
1435762652131 addons.xpi-utils DEBUG Updating add-on states
1435762652135 addons.xpi-utils DEBUG Writing add-ons list
1435762652178 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1435762652179 addons.manager DEBUG Provider finished startup: XPIProvider
1435762652179 addons.manager DEBUG Starting provider: LightweightThemeManager
1435762652179 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1435762652179 addons.manager DEBUG Provider finished startup: LightweightThemeManager
1435762652180 addons.manager DEBUG Starting provider: GMPProvider
1435762652190 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1435762652190 addons.manager DEBUG Provider finished startup: GMPProvider
1435762652190 addons.manager DEBUG Starting provider: PluginProvider
1435762652191 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1435762652191 addons.manager DEBUG Provider finished startup: PluginProvider
1435762652192 addons.manager DEBUG Completed startup sequence
1435762652766 addons.manager DEBUG Starting provider: <unnamed-provider>
1435762652766 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider>
1435762652767 addons.manager DEBUG Provider finished startup: <unnamed-provider>
1435762652925 DeferredSave.extensions.json DEBUG Starting timer
1435762653270 DeferredSave.extensions.json DEBUG Starting write
1435762653333 addons.manager DEBUG shutdown
1435762653333 addons.manager DEBUG Calling shutdown blocker for XPIProvider
1435762653334 addons.xpi DEBUG shutdown
1435762653334 addons.xpi-utils DEBUG shutdown
1435762653335 addons.manager DEBUG Calling shutdown blocker for LightweightThemeManager
1435762653336 addons.manager DEBUG Calling shutdown blocker for GMPProvider
1435762653339 addons.manager DEBUG Calling shutdown blocker for PluginProvider
1435762653339 addons.manager DEBUG Calling shutdown blocker for <unnamed-provider>
1435762653591 DeferredSave.extensions.json DEBUG Write succeeded
1435762653592 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 16
1435762653592 addons.xpi DEBUG Notifying XPI shutdown observers
1435762653599 addons.manager DEBUG Async provider shutdown done
JavaScript error: resource://gre/modules/BookmarkHTMLUtils.jsm, line 897: NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsINavBookmarksService.removeFolderChildren]
JavaScript error: resource://gre/modules/BookmarkHTMLUtils.jsm, line 897: NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsINavBookmarksService.removeFolderChildren]
JavaScript error: jar:file:///C:/Program%20Files%20(x86)/Mozilla%20Firefox/browser/omni.ja!/components/nsBrowserGlue.js, line 1890: NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIAnnotationService.getItemsWithAnnotation]
Build info: version: '2.43.1', revision: '5163bceef1bc36d43f3dc0b83c88998168a363a0', time: '2014-09-10 09:43:55'
System info: host: 'W-GAMAHAJA-19', ip: '172.28.144.15', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_40'
Driver info: driver.version: FirefoxDriver
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:134)
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:191)
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 org.test.tutorials.DisableJS.main(DisableJS.java:22)
Caused by: org.openqa.selenium.WebDriverException: java.lang.InterruptedException: Process timed out after waiting for 45000 ms.
Build info: version: '2.43.1', revision: '5163bceef1bc36d43f3dc0b83c88998168a363a0', time: '2014-09-10 09:43:55'
System info: host: 'W-GAMAHAJA-19', ip: '172.28.144.15', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_40'
Driver info: driver.version: FirefoxDriver
at org.openqa.selenium.os.CommandLine.waitFor(CommandLine.java:131)
at org.openqa.selenium.firefox.FirefoxBinary.waitFor(FirefoxBinary.java:222)
at org.openqa.selenium.firefox.FirefoxBinary.clean(FirefoxBinary.java:242)
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:91)
... 7 more
Caused by: java.lang.InterruptedException: Process timed out after waiting for 45000 ms.
at org.openqa.selenium.os.UnixProcess.waitFor(UnixProcess.java:148)
at org.openqa.selenium.os.CommandLine.waitFor(CommandLine.java:129)
... 10 more
Although others have had success with 2.46 and the latest version of Firefox, I've had similar issues running selenium on Firefox. In each case I've been able to bypass them by downgrading to an older version of Firefox.
Related
I am using firefox on RHEL 6.4 for selenium script. For this I had used selenium 2.48.2, 2.49 version but I could not find compatible version of firefox with these selenium version. I am using Xming for triggering the firefox from linux on windows. please can anyone provide some help to which firefox driver is compatible with selenium 2.49 or 2.48.2. I had already tried firefox 39,41,43,44 version but I am getting the following exception -
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
iding the updated system add-ons.
1456292657904 addons.manager DEBUG Registering startup change 'installed' for fxdriver#googlecode.com
1456292657904 addons.xpi-utils DEBUG Make addon app-profile:fxdriver#googlecode.com visible
1456292657905 DeferredSave.extensions.json DEBUG Save changes
1456292657905 addons.xpi-utils DEBUG Make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd} visible
1456292657905 DeferredSave.extensions.json DEBUG Save changes
1456292657906 addons.xpi DEBUG Updating XPIState for `{"id":"fxdriver#googlecode.com","syncGUID":"RdhxVFQ80wzQ","location":"app-profile","version":"2.48.0","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Firefox WebDriver","description":"WebDriver implementation for Firefox","creator":"Simon Stewart","homepageURL":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/tmp/anonymous3945461434748043456webdriver-profile/extensions/fxdriver#googlecode.com","installDate":1456292633000,"updateDate":1456292633000,"applyBackgroundUpdates":1,"bootstrap":false,"size":3213569,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":true,"hasBinaryComponents":true,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"3.0","maxVersion":"45.0"}],"targetPlatforms":[{"os":"Darwin","abi":null},{"os":"SunOS","abi":null},{"os":"FreeBSD","abi":null},{"os":"OpenBSD","abi":null},{"os":"WINNT","abi":"x86-msvc"},{"os":"Linux","abi":null}],"multiprocessCompatible":false,"signedState":0}
1456292657907 addons.xpi DEBUG getModTime: Recursive scan of fxdriver#googlecode.com
1456292657909 addons.xpi DEBUG Updating XPIState for {"id":"{972ce4c6-7e08-4474-a285-3208198ce6fd}","syncGUID":"B6gLC6ZQUiLs","location":"app-global","version":"43.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":"/opt/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}","installDate":1449604917000,"updateDate":1449604917000,"applyBackgroundUpdates":1,"skinnable":true,"size":5022,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"43.0","maxVersion":"43.0"}],"targetPlatforms":[]}
1456292657910 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1456292657911 DeferredSave.extensions.json DEBUG Save changes
1456292657911 addons.xpi DEBUG Updating database with changes to installed add-ons
1456292657911 addons.xpi-utils DEBUG Updating add-on states
1456292657912 addons.xpi-utils DEBUG Writing add-ons list
1456292657923 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1456292657924 addons.manager DEBUG Provider finished startup: XPIProvider
1456292657924 addons.manager DEBUG Starting provider: LightweightThemeManager
1456292657924 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1456292657925 addons.manager DEBUG Provider finished startup: LightweightThemeManager
1456292657926 addons.manager DEBUG Starting provider: GMPProvider
1456292657932 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1456292657932 addons.manager DEBUG Provider finished startup: GMPProvider
1456292657932 addons.manager DEBUG Starting provider: PluginProvider
1456292657933 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1456292657933 addons.manager DEBUG Provider finished startup: PluginProvider
1456292657934 addons.manager DEBUG Completed startup sequence
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:123)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:117)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:216)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:207)`
Also I could find that selenium 2.41 is working with firefox 30 version, but I want to use selenium 2.49 so I want compatible firefox for 2.49 version.
Here is the change log : https://github.com/SeleniumHQ/selenium/blob/master/dotnet/CHANGELOG
Firefox v41 should work fine with selenium 2.49
Firefox v42 will work fine. I used v42 for both versions
It says in the CHANGELOG notes for version 2.48 that you MUST USE no later version than Firefox 31.6.0 ESR if your intent is to use any of the native event calls, such as driver.navigate() or element.click() .
If you open a browser and use synthetic non-native events with Javascript to navigate the url and/or to click on stuff, then yes, all later versions of Firefox will work for you.
Getting below error while executing selenium webdriver(2.51 )scripts in firefox44:
webdriver can able to open the browser but not an empty browser with url :
https://www.mozilla.org/en-US/firefox/44.0.2/firstrun/learnmore/
can anyone please help me out.
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
ranjans\AppData\Local\Temp\anonymous5188298946682853621webdriver-profile\extensions\fxdriver#googlecode.com
1455279332288 addons.xpi DEBUG Ignoring file entry whose name is not a valid add-on ID: C:\Users\cranjans\AppData\Local\Temp\anonymous5188298946682853621webdriver-profile\extensions\webdriver-staging
1455279332288 addons.xpi INFO SystemAddonInstallLocation directory is missing
1455279332289 addons.xpi INFO Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}
1455279332289 addons.xpi DEBUG Skipping unavailable install location app-system-share
1455279332289 addons.xpi DEBUG Skipping unavailable install location app-system-local
1455279332289 addons.xpi DEBUG checkForChanges
1455279332290 addons.xpi DEBUG Loaded add-on state from prefs: {"app-profile":{"fxdriver#googlecode.com":{"d":"C:\\Users\\cranjans\\AppData\\Local\\Temp\\anonymous5188298946682853621webdriver-profile\\extensions\\fxdriver#googlecode.com","e":false,"v":"2.45.0","st":1455279330232,"mt":1455279330062}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"44.0.2","st":1455258340685,"mt":1455258340500}}}
1455279332291 addons.xpi DEBUG Existing add-on fxdriver#googlecode.com in app-profile
1455279332291 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1455279332292 addons.xpi DEBUG Existing add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} in app-global
1455279332292 addons.xpi DEBUG getInstallState changed: false, state: {"app-profile":{"fxdriver#googlecode.com":{"d":"C:\\Users\\cranjans\\AppData\\Local\\Temp\\anonymous5188298946682853621webdriver-profile\\extensions\\fxdriver#googlecode.com","e":false,"v":"2.45.0","st":1455279330232,"mt":1455279330062}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"44.0.2","st":1455258340685,"mt":1455258340500}}}
1455279332293 addons.xpi DEBUG No changes found
1455279332299 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1455279332299 addons.manager DEBUG Provider finished startup: XPIProvider
1455279332299 addons.manager DEBUG Starting provider: LightweightThemeManager
1455279332299 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1455279332300 addons.manager DEBUG Provider finished startup: LightweightThemeManager
1455279332300 addons.manager DEBUG Starting provider: GMPProvider
1455279332304 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1455279332305 addons.manager DEBUG Provider finished startup: GMPProvider
1455279332305 addons.manager DEBUG Starting provider: PluginProvider
1455279332305 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1455279332305 addons.manager DEBUG Provider finished startup: PluginProvider
1455279332305 addons.manager DEBUG Completed startup sequence
1455279332384 addons.xpi-utils DEBUG Starting async load of XPI database C:\Users\cranjans\AppData\Local\Temp\anonymous5188298946682853621webdriver-profile\extensions.json
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
1455279332479 addons.manager DEBUG Starting provider: <unnamed-provider>
1455279332479 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider>
1455279332479 addons.manager DEBUG Provider finished startup: <unnamed-provider>
1455279332580 addons.xpi-utils DEBUG Async JSON file read took 0 MS
1455279332580 addons.xpi-utils DEBUG Finished async read of XPI database, parsing...
1455279332581 addons.xpi-utils DEBUG Successfully read XPI database
1455279332645 addons.manager DEBUG Starting provider: PreviousExperimentProvider
1455279332645 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider
1455279332645 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider
It is happening because of new issue of selenium. You need to setPreference as xpinstall.signatures.required", false and then have to pass it in selenium object.
Below is the code which working fine for me. Take a reference of same
WebDriver driver = null;
final FirefoxProfile firefoxProfile = new FirefoxProfile();
firefoxProfile.setPreference("xpinstall.signatures.required", false);
driver = new FirefoxDriver(firefoxProfile);
driver.get("YOUR URL");
Hope it will help you :)
Yeah, all you need to do, to get it to work is to stop using the native navigate event in Firefox, and make a JavascriptExecutor that will navigate the page. Then, you will see that it will work. If you want to use that native navigate event, you need to downgrade to Firefox 31.6.0 ESR. You can try a later version of ESR, but I suspect it wont work for you either.
I am using Firefox 44 on Ubuntu 12.04. I've got the Selenium Firefox Driver (Java 8) version 2.51.0.
It works fine with all my programs that use the default firefox profile.
However, I have a couple of programs that use a special Firefox profile, and these do not work.
The Firefox window opens, shows a blank page for a while, and then closes.
The error I get is:
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
/lib/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}
1455175741082 addons.xpi INFO Mapping ubufox#ubuntu.com to /usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/ubufox#ubuntu.com.xpi
1455175741083 addons.xpi DEBUG checkForChanges
1455175741083 addons.xpi DEBUG Loaded add-on state from prefs: {"app-profile":{"fxdriver#googlecode.com":{"d":"/tmp/anonymous1261823428052395525webdriver-profile/extensions/fxdriver#googlecode.com","e":false,"v":"2.45.0","st":1455175734000,"mt":1455175734000}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"/usr/lib/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"44.0","st":1454293453000,"mt":1453731912000}},"app-system-share":{"ubufox#ubuntu.com":{"d":"/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/ubufox#ubuntu.com.xpi","e":true,"v":"3.2","st":1442597112000}}}
1455175741084 addons.xpi DEBUG Existing add-on fxdriver#googlecode.com in app-profile
1455175741085 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1455175741085 addons.xpi DEBUG Existing add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} in app-global
1455175741085 addons.xpi DEBUG getModTime: Recursive scan of ubufox#ubuntu.com
1455175741086 addons.xpi DEBUG Existing add-on ubufox#ubuntu.com in app-system-share
1455175741086 addons.xpi DEBUG getInstallState changed: false, state: {"app-profile":{"fxdriver#googlecode.com":{"d":"/tmp/anonymous1261823428052395525webdriver-profile/extensions/fxdriver#googlecode.com","e":false,"v":"2.45.0","st":1455175734000,"mt":1455175734000}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"/usr/lib/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"44.0","st":1454293453000,"mt":1453731912000}},"app-system-share":{"ubufox#ubuntu.com":{"d":"/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/ubufox#ubuntu.com.xpi","e":true,"v":"3.2","st":1442597112000}}}
1455175741087 addons.xpi DEBUG No changes found
1455175741095 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1455175741095 addons.manager DEBUG Provider finished startup: XPIProvider
1455175741096 addons.manager DEBUG Starting provider: LightweightThemeManager
1455175741096 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1455175741096 addons.manager DEBUG Provider finished startup: LightweightThemeManager
1455175741096 addons.manager DEBUG Starting provider: GMPProvider
1455175741102 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1455175741102 addons.manager DEBUG Provider finished startup: GMPProvider
1455175741102 addons.manager DEBUG Starting provider: PluginProvider
1455175741102 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1455175741102 addons.manager DEBUG Provider finished startup: PluginProvider
1455175741103 addons.manager DEBUG Completed startup sequence
1455175741142 addons.xpi-utils DEBUG Starting async load of XPI database /tmp/anonymous1261823428052395525webdriver-profile/extensions.json
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
1455175741245 addons.manager DEBUG Starting provider: <unnamed-provider>
1455175741245 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider>
1455175741245 addons.manager DEBUG Provider finished startup: <unnamed-provider>
1455175741325 addons.xpi-utils DEBUG Async JSON file read took 0 MS
1455175741325 addons.xpi-utils DEBUG Finished async read of XPI database, parsing...
1455175741326 addons.xpi-utils DEBUG Successfully read XPI database
1455175741389 addons.manager DEBUG Starting provider: PreviousExperimentProvider
1455175741389 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider
1455175741389 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider
console.error:
[CustomizableUI]
Custom widget with id loop-button does not return a valid node
console.error:
[CustomizableUI]
Custom widget with id loop-button does not return a valid node
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:99)
at mainPackage.MainClass.main(MainClass.java:45)
Is there some incompatibility that I am unaware of?
The code that I am using is :
ProfilesIni allProfiles = new ProfilesIni();
FirefoxProfile profile = allProfiles.getProfile("AutomationProfile");
WebDriver driver=new FirefoxDriver(profile);
driver.get("<some link>");
The error you are getting is due to compatability issues between Firefox & Selenium. Suggestions would be:
Running an older Firefox version
If you use JDK 7, try switching it to JDK 6.
As i understand, it runs ok with the default profile and without knowing what do you have inside your new profile makes it hard to identify the real cause.
I am trying to run multi browsers at once and I noticed that I cannot execute it with Firefox 44. I have already updated my selenium standalone server.
Below is my script on config.js
exports.config=
{
directConnect: true,
seleniumAddress:'http://localhost:4444/wd/hub',
capabilities: {
'browserName': 'firefox'
},
The error I am getting is as follows:
C:\Users\mivy\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-
webdriver\lib\atoms\error.js:113
var template = new Error(this.message);
^
UnknownError: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. F
irefox console output:
454955423474 addons.xpi DEBUG Skipping unavailable install location ap
p-system-share
1454955423474 addons.xpi DEBUG Skipping unavailable install location ap
p-system-local
1454955423475 addons.xpi INFO Mapping {1E2593B2-E106-4697-BCE7-A9D30DE
05D73} to C:\Program Files (x86)\HttpWatch\Firefox
1454955423475 addons.xpi DEBUG checkForChanges
1454955423475 addons.xpi DEBUG Loaded add-on state from prefs: {"app-pr
ofile":{"fxdriver#googlecode.com":{"d":"C:\\Users\\mivy\\AppData\\Local\\Temp\\a
nonymous1228280274538478961webdriver-profile\\extensions\\fxdriver#googlecode.co
m","e":false,"v":"2.45.0","st":1454955418766,"mt":1454955418726}},"app-global":{
"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\\Program Files (x86)\\Mozilla
Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"
v":"44.0","st":1454096785365,"mt":1454096777104}},"winreg-app-global":{"{1E2593B
2-E106-4697-BCE7-A9D30DE05D73}":{"d":"C:\\Program Files (x86)\\HttpWatch\\Firefo
x","e":false,"v":"10.0.27","st":1440422278442,"mt":1438081200000}}}
1454955423489 addons.xpi DEBUG Existing add-on fxdriver#googlecode.com
in app-profile
1454955423489 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-
7e08-4474-a285-3208198ce6fd}
1454955423493 addons.xpi DEBUG Existing add-on {972ce4c6-7e08-4474-a285
-3208198ce6fd} in app-global
1454955423493 addons.xpi DEBUG Existing add-on {1E2593B2-E106-4697-BCE7
-A9D30DE05D73} in winreg-app-global
1454955423494 addons.xpi DEBUG getInstallState changed: false, state: {
"app-profile":{"fxdriver#googlecode.com":{"d":"C:\\Users\\mivy\\AppData\\Local\\
Temp\\anonymous1228280274538478961webdriver-profile\\extensions\\fxdriver#google
code.com","e":false,"v":"2.45.0","st":1454955418766,"mt":1454955418726}},"app-gl
obal":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\\Program Files (x86)\\M
ozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","e"
:true,"v":"44.0","st":1454096785365,"mt":1454096777104}},"winreg-app-global":{"{
1E2593B2-E106-4697-BCE7-A9D30DE05D73}":{"d":"C:\\Program Files (x86)\\HttpWatch\
\Firefox","e":false,"v":"10.0.27","st":1440422278442,"mt":1438081200000}}}
1454955423498 addons.xpi DEBUG No changes found
1454955423505 addons.manager DEBUG Registering shutdown blocker for XPIProv
ider
1454955423505 addons.manager DEBUG Provider finished startup: XPIProvider
1454955423505 addons.manager DEBUG Starting provider: LightweightThemeManag
er
1454955423506 addons.manager DEBUG Registering shutdown blocker for Lightwe
ightThemeManager
1454955423506 addons.manager DEBUG Provider finished startup: LightweightTh
emeManager
1454955423506 addons.manager DEBUG Starting provider: GMPProvider
1454955423510 addons.manager DEBUG Registering shutdown blocker for GMPProv
ider
1454955423510 addons.manager DEBUG Provider finished startup: GMPProvider
1454955423510 addons.manager DEBUG Starting provider: PluginProvider
1454955423510 addons.manager DEBUG Registering shutdown blocker for PluginP
rovider
1454955423510 addons.manager DEBUG Provider finished startup: PluginProvide
r
1454955423511 addons.manager DEBUG Completed startup sequence
1454955423617 addons.xpi-utils DEBUG Starting async load of XPI datab
ase C:\Users\mivy\AppData\Local\Temp\anonymous1228280274538478961webdriver-profi
le\extensions.json
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
1454955423705 addons.manager DEBUG Starting provider: <unnamed-provider>
1454955423705 addons.manager DEBUG Registering shutdown blocker for <unname
d-provider>
1454955423705 addons.manager DEBUG Provider finished startup: <unnamed-prov
ider>
1454955423774 addons.xpi-utils DEBUG Async JSON file read took 0 MS
1454955423774 addons.xpi-utils DEBUG Finished async read of XPI datab
ase, parsing...
1454955423775 addons.xpi-utils DEBUG Successfully read XPI database
1454955423830 addons.manager DEBUG Starting provider: PreviousExperimentPro
vider
1454955423830 addons.manager DEBUG Registering shutdown blocker for Previou
sExperimentProvider
1454955423830 addons.manager DEBUG Provider finished startup: PreviousExper
imentProvider
at new bot.Error (C:\Users\mivy\AppData\Roaming\npm\node_modules\protractor\
node_modules\selenium-webdriver\lib\atoms\error.js:113:18)
at Object.bot.response.checkResponse (C:\Users\mivy\AppData\Roaming\npm\node
_modules\protractor\node_modules\selenium-webdriver\lib\atoms\response.js:106:9)
at C:\Users\mivy\AppData\Roaming\npm\node_modules\protractor\node_modules\se
lenium-webdriver\lib\webdriver\webdriver.js:158:24
at [object Object].promise.ControlFlow.runInFrame_ (C:\Users\mivy\AppData\Ro
aming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver\
promise.js:1877:20)
at [object Object].promise.Callback_.goog.defineClass.notify (C:\Users\mivy\
AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\
webdriver\promise.js:2464:25)
at [object Object].promise.Promise.notify_ (C:\Users\mivy\AppData\Roaming\np
m\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver\promise.
js:563:12)
at Array.forEach (native)
at Object.goog.array.forEach (C:\Users\mivy\AppData\Roaming\npm\node_modules
\protractor\node_modules\selenium-webdriver\lib\goog\array\array.js:203:43)
at [object Object].promise.Promise.notifyAll_ (C:\Users\mivy\AppData\Roaming
\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver\promi
se.js:552:16)
at goog.async.run.processWorkQueue (C:\Users\mivy\AppData\Roaming\npm\node_m
odules\protractor\node_modules\selenium-webdriver\lib\goog\async\run.js:125:21)
From: Task: WebDriver.createSession()
at Function.webdriver.WebDriver.acquireSession_ (C:\Users\mivy\AppData\Roami
ng\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver\web
driver.js:155:22)
at Function.webdriver.WebDriver.createSession (C:\Users\mivy\AppData\Roaming
\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver\webdr
iver.js:129:30)
at [object Object].Builder.build (C:\Users\mivy\AppData\Roaming\npm\node_mod
ules\protractor\node_modules\selenium-webdriver\builder.js:416:22)
at [object Object].DriverProvider.getNewDriver (C:\Users\mivy\AppData\Roamin
g\npm\node_modules\protractor\lib\driverProviders\driverProvider.js:38:7)
at [object Object].Runner.createBrowser (C:\Users\mivy\AppData\Roaming\npm\n
ode_modules\protractor\lib\runner.js:180:37)
at C:\Users\mivy\AppData\Roaming\npm\node_modules\protractor\lib\runner.js:2
56:21
at _fulfilled (C:\Users\mivy\AppData\Roaming\npm\node_modules\protractor\nod
e_modules\q\q.js:797:54)
at self.promiseDispatch.done (C:\Users\mivy\AppData\Roaming\npm\node_modules
\protractor\node_modules\q\q.js:826:30)
at Promise.promise.promiseDispatch (C:\Users\AppData\Roaming\npm\node_m
odules\protractor\node_modules\q\q.js:759:13)
at C:\Users\AppData\Roaming\npm\node_modules\protractor\node_modules\q\
q.js:525:49
[launcher] Process exited with error code 1
Is there anything that I missed on configuration? Or is it that I need to upgrade my plugin in firefox? Thanks!
Assuming you are using Protractor 3.0.0, the Firefox-related issue should be solved by upgrading it to the, currently latest, version 43. The Firefox 42 has compatibility issues with selenium 2.48.
I am getting this https://www.mozilla.org/en-US/firefox/43.0.1/firstrun/learnmore/ while running my script in Firefox. This was running just fine until last week but it has stopped working now. I renamed and deleted the Firefox profile but that didn't help. Here are the error I am receiving in Eclipse. Any help will be appreciated.
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
ddons.xpi DEBUG checkForChanges
1450818781417 addons.xpi DEBUG Loaded add-on state from prefs: {"app-profile":{"fxdriver#googlecode.com":{"d":"C:\\Users\\sluite\\AppData\\Local\\Temp\\anonymous4238069008057039774webdriver-profile\\extensions\\fxdriver#googlecode.com","e":false,"v":"2.45.0","st":1450818779415,"mt":1450818779275}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"43.0.1","st":1450741870041,"mt":1450322003000}}}
1450818781418 addons.xpi DEBUG Existing add-on fxdriver#googlecode.com in app-profile
1450818781418 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1450818781419 addons.xpi DEBUG Existing add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} in app-global
1450818781419 addons.xpi DEBUG getInstallState changed: false, state: {"app-profile":{"fxdriver#googlecode.com":{"d":"C:\\Users\\sluite\\AppData\\Local\\Temp\\anonymous4238069008057039774webdriver-profile\\extensions\\fxdriver#googlecode.com","e":false,"v":"2.45.0","st":1450818779415,"mt":1450818779275}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"43.0.1","st":1450741870041,"mt":1450322003000}}}
1450818781420 addons.xpi DEBUG No changes found
1450818781426 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1450818781426 addons.manager DEBUG Provider finished startup: XPIProvider
1450818781426 addons.manager DEBUG Starting provider: LightweightThemeManager
1450818781426 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1450818781427 addons.manager DEBUG Provider finished startup: LightweightThemeManager
1450818781427 addons.manager DEBUG Starting provider: GMPProvider
1450818781431 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1450818781431 addons.manager DEBUG Provider finished startup: GMPProvider
1450818781431 addons.manager DEBUG Starting provider: PluginProvider
1450818781431 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1450818781432 addons.manager DEBUG Provider finished startup: PluginProvider
1450818781432 addons.manager DEBUG Completed startup sequence
1450818781497 addons.xpi-utils DEBUG Starting async load of XPI database C:\Users\sluite\AppData\Local\Temp\anonymous4238069008057039774webdriver-profile\extensions.json
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
1450818781568 addons.manager DEBUG Starting provider: <unnamed-provider>
1450818781568 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider>
1450818781568 addons.manager DEBUG Provider finished startup: <unnamed-provider>
1450818781653 addons.xpi-utils DEBUG Async JSON file read took 0 MS
1450818781653 addons.xpi-utils DEBUG Finished async read of XPI database, parsing...
1450818781653 addons.xpi-utils DEBUG Successfully read XPI database
1450818781711 addons.manager DEBUG Starting provider: PreviousExperimentProvider
1450818781711 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider
1450818781712 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider
1450818825183 addons.manager DEBUG shutdown
1450818825183 addons.manager DEBUG Calling shutdown blocker for XPIProvider
1450818825184 addons.xpi DEBUG shutdown
1450818825184 addons.xpi-utils DEBUG shutdown
1450818825184 addons.manager DEBUG Calling shutdown blocker for LightweightThemeManager
1450818825184 addons.manager DEBUG Calling shutdown blocker for GMPProvider
1450818825185 addons.manager DEBUG Calling shutdown blocker for PluginProvider
1450818825186 addons.manager DEBUG Calling shutdown blocker for <unnamed-provider>
1450818825187 addons.manager DEBUG Calling shutdown blocker for PreviousExperimentProvider
1450818825189 addons.xpi DEBUG Notifying XPI shutdown observers
1450818825191 addons.manager DEBUG Async provider shutdown done
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 WindowsHandle.HandleACLPopUP.baseURL(HandleACLPopUP.java:27)
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.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)
at org.testng.TestRunner.beforeRun(TestRunner.java:641)
at org.testng.TestRunner.run(TestRunner.java:609)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
at org.testng.TestNG.run(TestNG.java:1057)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)
This issue seems fixed in recent versions of FirefoxDriver. If you are not using latest version of FirefoxDriver, please upgrade it to 2.49.1 (latest version)