RemoteWebDriver with Firefox not working while Chrome works fine

133 views
Skip to first unread message

Andreas H.

unread,
Mar 9, 2017, 8:22:34 AM3/9/17
to Selenium Users
I am using the Selenium Standalone Server in version 3.2.0
I'm also using the GeckoDriver in the version 0.15.0 and the ChromeDriver in the version 2.27.

Using these two WebDrivers locally (and using local Driver versions) the tests I have work on both Firefox and Chrome.
When using RemoteWebDriver and trying to run them on the Selenium Standalone server, Chrome works and runs the test properly.
I tried running the GeckoWebDriver in 32 and 64 bit (Firefox is 32 bit), I tried enabling and disabling the options "marionette = true" and setting the browser name to "firefox" in my test code, which did not change the outcome.
When trying to run the same test remotely via Firefox, the firefox client opens. As soon as it opens, the test cancels and I get the following error posted at the bottom. Is there anything I can do to get the Firefox Remote WebDriver working?

Thanks in advance,
Andreas

Error:
org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{marionette=true, browserName=firefox, moz:firefoxOptions=org.openqa.selenium.firefox.FirefoxOptions@4930f4bb, version=, platform=ANY, firefox_profile=org.openqa.selenium.firefox.FirefoxProfile@c3273f9}], required capabilities = Capabilities [{}]
Build info: version: '3.2.0', revision: '8c03df6', time: '2017-03-02 09:34:51 -0800'
System info: host: 'CLIENT', ip: '192.168.0.13', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_121'
Driver info: driver.version: FirefoxDriver
Command duration or timeout: 0 milliseconds
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[... 36 lines omitted]
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
Caused by: org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{marionette=true, browserName=firefox, moz:firefoxOptions=org.openqa.selenium.firefox.FirefoxOptions@4930f4bb, version=, platform=ANY, firefox_profile=org.openqa.selenium.firefox.FirefoxProfile@c3273f9}], required capabilities = Capabilities [{}]
Build info: version: '3.2.0', revision: '8c03df6', time: '2017-03-02 09:34:51 -0800'
System info: host: 'CLIENT', ip: '192.168.0.13', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_121'
Driver info: driver.version: FirefoxDriver
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'TESTER', ip: '192.168.0.14', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.8.0_111'
Driver info: driver.version: FirefoxDriver
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:91)
[... 22 lines omitted]
    at java.lang.Thread.run(Unknown Source)

java.lang.NullPointerException
    at Testpackage.Test.tearDown(Test.java:67)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[... 21 lines omitted]
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)


Andreas H.

unread,
Mar 9, 2017, 9:07:49 AM3/9/17
to Selenium Users
I have been asking on IRC about this problem as well, and I have been told that the GeckoDriver 0.15 needs Selenium Standalone Server 3.3.1 which is not yet released. I have currently switched to 0.14 GeckoDriver, it now works.

Thanks to SimonStewart

⇜Krishnan Mahadevan⇝

unread,
Mar 9, 2017, 9:29:36 AM3/9/17
to Selenium Users
Selenium 3.3.0 standalone (uber jar) is released and can be found here : http://selenium-release.storage.googleapis.com/index.html?path=3.3/

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/2fce00bf-5e7b-4dd8-b5d0-ce6c5ed3ec23%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Andreas Tolfsen

unread,
Mar 9, 2017, 9:33:42 AM3/9/17
to seleniu...@googlegroups.com
Also sprach Andreas H. <priva...@gmail.com>:

> I am using the Selenium Standalone Server in version 3.2.0
> I'm also using the GeckoDriver in the version 0.15.0 and the
> ChromeDriver in the version 2.27.

You need to upgrade to Selenium 3.3.

Andreas H.

unread,
Mar 10, 2017, 7:21:02 AM3/10/17
to Selenium Users
Thanks. by the time of the initial post apparently the new version was not out yet.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages