[Firefox] Webdriver isn't work with 64 bit version of firefox
Single installation of firefox x64 returns an error for tests. After start test run firefox instance (only for java) but after run return errors.
C#
Result StackTrace:
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at OpenQA.Selenium.Firefox.Internal.Executable.LocateFirefoxBinaryFromPlatform()
at OpenQA.Selenium.Firefox.Internal.Executable..ctor(String userSpecifiedBinaryPath)
at OpenQA.Selenium.Firefox.FirefoxBinary..ctor(String pathToFirefoxBinary)
at OpenQA.Selenium.Firefox.FirefoxDriver..ctor()
Result Message: System.ComponentModel.Win32Exception : The system cannot find the file specified
Java
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
161268431903553903webdriver-profile\\extensions\\[email protected]","installDate":1451390671378,"updateDate":1451390671378,"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}
1451390671923 addons.xpi DEBUG Updating XPIState for {"id":"{972ce4c6-7e08-4474-a285-3208198ce6fd}","syncGUID":"Zyi2si20fyvo","location":"app-global","version":"43.0.3","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":"C:\\Program Files\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","installDate":1451359851119,"updateDate":1451359851119,"applyBackgroundUpdates":1,"skinnable":true,"size":24172,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"43.0.3","maxVersion":"43.0.3"}],"targetPlatforms":[]}
1451390671923 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1451390671924 DeferredSave.extensions.json DEBUG Save changes
1451390671924 addons.xpi DEBUG Updating database with changes to installed add-ons
1451390671924 addons.xpi-utils DEBUG Updating add-on states
1451390671925 addons.xpi-utils DEBUG Writing add-ons list
1451390671932 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1451390671933 addons.manager DEBUG Provider finished startup: XPIProvider
1451390671933 addons.manager DEBUG Starting provider: LightweightThemeManager
1451390671933 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1451390671933 addons.manager DEBUG Provider finished startup: LightweightThemeManager
1451390671933 addons.manager DEBUG Starting provider: GMPProvider
1451390671937 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1451390671938 addons.manager DEBUG Provider finished startup: GMPProvider
1451390671938 addons.manager DEBUG Starting provider: PluginProvider
1451390671938 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1451390671938 addons.manager DEBUG Provider finished startup: PluginProvider
1451390671938 addons.manager DEBUG Completed startup sequence
1451390672106 addons.manager DEBUG Starting provider: <unnamed-provider>
1451390672106 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider>
1451390672106 addons.manager DEBUG Provider finished startup: <unnamed-provider>
1451390672154 DeferredSave.extensions.json DEBUG Starting write
1451390672287 addons.repository DEBUG No addons.json found.
1451390672287 DeferredSave.addons.json DEBUG Save changes
1451390672289 DeferredSave.addons.json DEBUG Starting timer
1451390672295 addons.manager DEBUG Starting provider: PreviousExperimentProvider
1451390672296 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider
1451390672296 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider
1451390672299 DeferredSave.extensions.json DEBUG Write succeeded
1451390672299 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 17
1451390672341 DeferredSave.addons.json DEBUG Starting write
1451390672372 DeferredSave.addons.json DEBUG Write succeeded
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)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:120)
at com.epam.dailybeast.testtask.test.NewsPage.canOpenNewsPage(NewsPage.java:22)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files\Mozilla Firefox\firefox.exe) on port 7055; process output follows:
161268431903553903webdriver-profile\\extensions\\[email protected]","installDate":1451390671378,"updateDate":1451390671378,"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}
1451390671923 addons.xpi DEBUG Updating XPIState for {"id":"{972ce4c6-7e08-4474-a285-3208198ce6fd}","syncGUID":"Zyi2si20fyvo","location":"app-global","version":"43.0.3","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":"C:\\Program Files\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","installDate":1451359851119,"updateDate":1451359851119,"applyBackgroundUpdates":1,"skinnable":true,"size":24172,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"43.0.3","maxVersion":"43.0.3"}],"targetPlatforms":[]}
1451390671923 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1451390671924 DeferredSave.extensions.json DEBUG Save changes
1451390671924 addons.xpi DEBUG Updating database with changes to installed add-ons
1451390671924 addons.xpi-utils DEBUG Updating add-on states
1451390671925 addons.xpi-utils DEBUG Writing add-ons list
1451390671932 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1451390671933 addons.manager DEBUG Provider finished startup: XPIProvider
1451390671933 addons.manager DEBUG Starting provider: LightweightThemeManager
1451390671933 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1451390671933 addons.manager DEBUG Provider finished startup: LightweightThemeManager
1451390671933 addons.manager DEBUG Starting provider: GMPProvider
1451390671937 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1451390671938 addons.manager DEBUG Provider finished startup: GMPProvider
1451390671938 addons.manager DEBUG Starting provider: PluginProvider
1451390671938 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1451390671938 addons.manager DEBUG Provider finished startup: PluginProvider
1451390671938 addons.manager DEBUG Completed startup sequence
1451390672106 addons.manager DEBUG Starting provider: <unnamed-provider>
1451390672106 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider>
1451390672106 addons.manager DEBUG Provider finished startup: <unnamed-provider>
1451390672154 DeferredSave.extensions.json DEBUG Starting write
1451390672287 addons.repository DEBUG No addons.json found.
1451390672287 DeferredSave.addons.json DEBUG Save changes
1451390672289 DeferredSave.addons.json DEBUG Starting timer
1451390672295 addons.manager DEBUG Starting provider: PreviousExperimentProvider
1451390672296 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider
1451390672296 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider
1451390672299 DeferredSave.extensions.json DEBUG Write succeeded
1451390672299 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 17
1451390672341 DeferredSave.addons.json DEBUG Starting write
1451390672372 DeferredSave.addons.json DEBUG Write succeeded
Build info: version: '2.48.2', revision: '41bccdd10cf2c0560f637404c2d96164b67d9d67', time: '2015-10-09 13:08:06'
System info: host: 'LH', ip: '10.7.14.16', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_66'
Driver info: driver.version: FirefoxDriver
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:135)
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)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:120)
at com.epam.dailybeast.testtask.test.NewsPage.canOpenNewsPage(NewsPage.java:22)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
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:
161268431903553903webdriver-profile\\extensions\\[email protected]","installDate":1451390671378,"updateDate":1451390671378,"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}
1451390671923 addons.xpi DEBUG Updating XPIState for {"id":"{972ce4c6-7e08-4474-a285-3208198ce6fd}","syncGUID":"Zyi2si20fyvo","location":"app-global","version":"43.0.3","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":"C:\\Program Files\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","installDate":1451359851119,"updateDate":1451359851119,"applyBackgroundUpdates":1,"skinnable":true,"size":24172,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"43.0.3","maxVersion":"43.0.3"}],"targetPlatforms":[]}
1451390671923 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1451390671924 DeferredSave.extensions.json DEBUG Save changes
1451390671924 addons.xpi DEBUG Updating database with changes to installed add-ons
1451390671924 addons.xpi-utils DEBUG Updating add-on states
1451390671925 addons.xpi-utils DEBUG Writing add-ons list
1451390671932 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1451390671933 addons.manager DEBUG Provider finished startup: XPIProvider
1451390671933 addons.manager DEBUG Starting provider: LightweightThemeManager
1451390671933 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1451390671933 addons.manager DEBUG Provider finished startup: LightweightThemeManager
1451390671933 addons.manager DEBUG Starting provider: GMPProvider
1451390671937 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1451390671938 addons.manager DEBUG Provider finished startup: GMPProvider
1451390671938 addons.manager DEBUG Starting provider: PluginProvider
1451390671938 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1451390671938 addons.manager DEBUG Provider finished startup: PluginProvider
1451390671938 addons.manager DEBUG Completed startup sequence
1451390672106 addons.manager DEBUG Starting provider: <unnamed-provider>
1451390672106 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider>
1451390672106 addons.manager DEBUG Provider finished startup: <unnamed-provider>
1451390672154 DeferredSave.extensions.json DEBUG Starting write
1451390672287 addons.repository DEBUG No addons.json found.
1451390672287 DeferredSave.addons.json DEBUG Save changes
1451390672289 DeferredSave.addons.json DEBUG Starting timer
1451390672295 addons.manager DEBUG Starting provider: PreviousExperimentProvider
1451390672296 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider
1451390672296 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider
1451390672299 DeferredSave.extensions.json DEBUG Write succeeded
1451390672299 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 17
1451390672341 DeferredSave.addons.json DEBUG Starting write
1451390672372 DeferredSave.addons.json DEBUG Write succeeded
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:123)
... 33 more
Support for Firefox x64 would be most appreciated
I am having the exact same problem.. the x86 version works just fine, but it's thowing the unable to connect error for the 64 version.
Looks like x64 version can't load webdriver.xpi

I have the same issue, but haven't tested x86 yet.
I tried firefox 38.5.0, 40.0, 43.0 all x64 and all failed
Same thing. Selenium 2.48-2.49 works fine with Firefox 43 x86, but fails on Firefox 43 x64. "Firefox WebDriver 2.48.0 (disabled)"
Is it possible to get webdriver.xpi from linux x64 firefox webdriver? And try to use with windows version, using custom driver options with extension loading?
Has anyone tried FF x64 with https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette? @lukeis mentioned back in November to try it.
@dhoer, is this solution required firefox nightly installed?
@rosolko I'm not sure what you are asking. I haven't tried Marionette yet, but it should behave like any other webdriver: https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver
@dhoer, in the preparation section they talking about
firefox_capabilities['binary'] = '/path/to/devedition/or/nightly'
dev or nightly
That's what I'm talking about.
On the stable version of firefox I get an error:
1453753134271 Marionette INFO Marionette enabled via build flag and pref
1453753134442 Marionette INFO Listening on port 2828
1453753134751 Marionette INFO Marionette enabled via command-line flag
1453753134785 Marionette INFO Accepted connection conn0 from 127.0.0.1:38286
1453753134785 Marionette DEBUG conn0 client <- {"applicationType":"gecko","marionetteProtocol":2}
1453753134830 Marionette INFO Closed connection conn0
Exception in thread "main" org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Build info: version: '2.49.0', revision: '365eeb44deba2067b1761c8862ef21d55250e063', time: '2016-01-13 11:57:39'
System info: host: 'moon', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.2.0-25-generic', java.version: '1.8.0_72'
Driver info: driver.version: MarionetteDriver
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:665)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:249)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:234)
at org.openqa.selenium.firefox.MarionetteDriver.run(MarionetteDriver.java:79)
at org.openqa.selenium.firefox.MarionetteDriver.<init>(MarionetteDriver.java:73)
at org.openqa.selenium.firefox.MarionetteDriver.<init>(MarionetteDriver.java:45)
at org.r.tvbuname.AccountCreator.initDriver(AccountCreator.java:49)
at org.r.tvbuname.AccountCreator.<init>(AccountCreator.java:31)
at org.r.tvbuname.Main.main(Main.java:5)
Caused by: java.lang.NullPointerException
at org.openqa.selenium.remote.ErrorCodes.toStatus(ErrorCodes.java:256)
at org.openqa.selenium.remote.JsonToBeanConverter.convert(JsonToBeanConverter.java:118)
at org.openqa.selenium.remote.JsonToBeanConverter.convert(JsonToBeanConverter.java:42)
at org.openqa.selenium.remote.http.JsonHttpResponseCodec.decode(JsonHttpResponseCodec.java:78)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:145)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:644)
... 8 more
I am facing the same issue as mentioned above by @rosolko lko
Is there any solution?
I haven't figured out a solution and I started playing with Marionette, but no luck there. I'm sticking with the 32bit installer for now. If you are using Chef Mozilla Firefox cookbook (https://github.com/dhoer/chef-mozilla_firefox) then just set the 32bit_only flag to true.
@rosolko could you try beta though nightly. Unfortunately we had to change the communication layer in Firefox 45 to solve so issues.
Marionette should be nearly as good as any webdriver, it's passing over 80% of the selenium test suite
On 25 Jan 2016, 20:21 +0000, Alexander [email protected], wrote:
On the stable version of firefox I get an error:
1453753134271MarionetteINFOMarionetteenabled via build flag and pref1453753134442MarionetteINFOListeningon port28281453753134751MarionetteINFOMarionetteenabled via command-line flag1453753134785MarionetteINFOAcceptedconnection conn0 from127.0.0.1:382861453753134785MarionetteDEBUGconn0 client<-{"applicationType":"gecko","marionetteProtocol":2}1453753134830MarionetteINFOClosedconnection conn0Exceptionin thread"main"org.openqa.selenium.remote.UnreachableBrowserException:Couldnot start anewsession. Possible causes are invalid address of the remote server or browser start-up failure. Build info: version: '2.49.0', revision: '365eeb44deba2067b1761c8862ef21d55250e063', time: '2016-01-13 11:57:39' System info: host: 'moon', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '4.2.0-25-generic', java.version: '1.8.0_72' Driver info: driver.version: MarionetteDriver atorg.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:665) atorg.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:249) atorg.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:234) atorg.openqa.selenium.firefox.MarionetteDriver.run(MarionetteDriver.java:79) atorg.openqa.selenium.firefox.MarionetteDriver.
(MarionetteDriver.java:73) atorg.openqa.selenium.firefox.MarionetteDriver. (MarionetteDriver.java:45) atorg.r.tvbuname.AccountCreator.initDriver(AccountCreator.java:49) atorg.r.tvbuname.AccountCreator. (AccountCreator.java:31) atorg.r.tvbuname.Main.main(Main.java:5)Causedby:java.lang.NullPointerExceptionatorg.openqa.selenium.remote.ErrorCodes.toStatus(ErrorCodes.java:256) atorg.openqa.selenium.remote.JsonToBeanConverter.convert(JsonToBeanConverter.java:118) atorg.openqa.selenium.remote.JsonToBeanConverter.convert(JsonToBeanConverter.java:42) atorg.openqa.selenium.remote.http.JsonHttpResponseCodec.decode(JsonHttpResponseCodec.java:78) atorg.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:145) atorg.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82) atorg.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:644)...8more — Reply to this email directly orview it on GitHub(https://github.com/SeleniumHQ/selenium/issues/1431#issuecomment-174649646).
@AutomatedTester
No luck there.
Install latest nightly build with 47.0a1 (2016-01-29) version.
Try to create driver instance:
DesiredCapabilities capabilities = DesiredCapabilities.
System.setProperty("webdriver.gecko.driver", "C:\\temp\\marionette.exe");
capabilities.setCapability("marionette", true);
capabilities.setCapability("binary", "C:\\Program Files\\Nightly\\firefox.exe");
WebDriver driver = new MarionetteDriver(capabilities);
Got output:
1454100249178 Marionette INFO Marionette enabled via build flag and pref
1454100249295 Marionette INFO Listening on port 2828
1454100249525 Marionette INFO Accepted connection conn0 from 127.0.0.1:51936
1454100249525 Marionette DEBUG conn0 client <- {"applicationType":"gecko","marionetteProtocol":2}
1454100249531 Marionette INFO Closed connection conn0
Exception in thread "main" org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Build info: version: '2.49.1', revision: '808c23b0963853d375cbe54b90bbd052e2528a54', time: '2016-01-21 09:37:52'
System info: host: 'moon', ip: '127.0.1.1', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_66'
Driver info: driver.version: MarionetteDriver
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:665)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:249)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:234)
at org.openqa.selenium.firefox.MarionetteDriver.run(MarionetteDriver.java:79)
at org.openqa.selenium.firefox.MarionetteDriver.<init>(MarionetteDriver.java:73)
at org.openqa.selenium.firefox.MarionetteDriver.<init>(MarionetteDriver.java:49)
at org.r.tvbuname.AccountCreator.initDriver(AccountCreator.java:51)
at org.r.tvbuname.AccountCreator.<init>(AccountCreator.java:30)
at org.r.tvbuname.Main.main(Main.java:5)
Caused by: java.lang.NullPointerException
at org.openqa.selenium.remote.ErrorCodes.toStatus(ErrorCodes.java:256)
at org.openqa.selenium.remote.JsonToBeanConverter.convert(JsonToBeanConverter.java:118)
at org.openqa.selenium.remote.JsonToBeanConverter.convert(JsonToBeanConverter.java:42)
at org.openqa.selenium.remote.http.JsonHttpResponseCodec.decode(JsonHttpResponseCodec.java:78)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:145)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:644)
... 8 more
@rosolko Was this using the latest wires release?
@AutomatedTester Download binary from this page. Binary version from archive is also 0.6.2
Please rerun the scenario with 2.50.1 to get more detailed exception info.
@barancev For now I have behavior like this:
- Init driver using code:
DesiredCapabilities capabilities = DesiredCapabilities.firefox();
System.setProperty("webdriver.gecko.driver", "C:\\temp\\marionette.exe");
capabilities.setCapability("marionette", true);
capabilities.setCapability("binary", "C:\\Program Files\\Nightly\\firefox.exe");
return new MarionetteDriver(capabilities);
- But start firefox stable
- Log exception:
Exception in thread "main" Disconnected from the target VM, address: '127.0.0.1:56142', transport: 'socket'
org.openqa.selenium.WebDriverException: Unsupported marionette protocol version 2, required 3 (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 861 milliseconds
Build info: version: '2.50.1', revision: 'd7fc91b29de65b790abb01f3ac5f7ea2191c88a7', time: '2016-01-29 11:11:26'
System info: host: 'moon', ip: '127.0.0.1', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_66'
Driver info: org.openqa.selenium.firefox.MarionetteDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:249)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:234)
at org.openqa.selenium.firefox.MarionetteDriver.run(MarionetteDriver.java:79)
at org.openqa.selenium.firefox.MarionetteDriver.<init>(MarionetteDriver.java:73)
at org.openqa.selenium.firefox.MarionetteDriver.<init>(MarionetteDriver.java:49)
at org.r.tvbuname.AccountCreator.initDriver(AccountCreator.java:53)
at org.r.tvbuname.AccountCreator.<init>(AccountCreator.java:30)
at org.r.tvbuname.Main.main(Main.java:5)
- Remove stable firefox release and run again
- Catch exception:
Exception in thread "main" org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH. Make sure firefox is installed. OS appears to be: WIN10
Build info: version: '2.50.1', revision: 'd7fc91b29de65b790abb01f3ac5f7ea2191c88a7', time: '2016-01-29 11:11:26'
System info: host: 'moon', ip: '127.0.0.1', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_66'
Driver info: driver.version: MarionetteDriver
at org.openqa.selenium.firefox.internal.Executable.<init>(Executable.java:75)
at org.openqa.selenium.firefox.GeckoDriverService$Builder.createArgs(GeckoDriverService.java:93)
at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:299)
at org.openqa.selenium.firefox.MarionetteDriver.setupService(MarionetteDriver.java:94)
at org.openqa.selenium.firefox.MarionetteDriver.<init>(MarionetteDriver.java:71)
at org.openqa.selenium.firefox.MarionetteDriver.<init>(MarionetteDriver.java:49)
at org.r.tvbuname.AccountCreator.initDriver(AccountCreator.java:53)
at org.r.tvbuname.AccountCreator.<init>(AccountCreator.java:30)
at org.r.tvbuname.Main.main(Main.java:5)
- Add path to binary
C:\Program Files\Nightly\firefox.exeto environment variables and run again - Catch same exception as in previous step
Hi, any luck finding a solution? I am still getting the same error msg ("Failed to connect to binary...on port 7055") with the latest FF x64 and Webdriver under Win7. Thanks! Tibi