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)