Selenium: Unable to create remote session with Firefox, using geckodriver 0.15.0

Created on 9 Mar 2017  Â·  26Comments  Â·  Source: SeleniumHQ/selenium

Meta -

OS:
Windows 7 x64
Selenium Version:
3.2.0
Browser:
Firefox 52

I receive this error after upgrading to geckodriver 0.15.0:
java.lang.ExceptionInInitializerError
at TestClass.testMenu(TestClass.java:42)
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:483)
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.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
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:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:51)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:237)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
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:483)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
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@276438c9, version=, platform=ANY, firefox_profile=org.openqa.selenium.firefox.FirefoxProfile@588df31b}], required capabilities = Capabilities [{}]
Build info: version: 'unknown', revision: '8c03df6', time: '2017-03-02 09:30:17 -0800'
System info: host: 'LT-AVRACIU-P351', ip: '192.168.0.11', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_31'
Driver info: driver.version: Driver
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:91)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:604)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:244)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:293)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:272)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:267)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:263)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:122)
at Driver.getDriver(Driver.java:10)
at Library.(Library.java:19)
... 29 more

java.lang.NoClassDefFoundError: Could not initialize class Library

The method created for initializing the driver is:
public static FirefoxDriver getDriver(){
System.setProperty("webdriver.gecko.driver","C:\Users\avraciu\Downloads\geckodriver-v0.15.0-win64\geckodriver.exe");
FirefoxDriver driver=new FirefoxDriver();
return driver;
}
The same setup works fine with geckodriver 0.14.0. Can you give me some advice? Thanks.

Most helpful comment

I'm facing the exact same problems, downgrading to 0.14 works but then i'm running into a sepperate issue where the suggested fix is to upgrade to 0.15 so i'm kinda stuck now.

EDIT:
even when using the latest version of selenium (3.4.0), the latest geckodriver (0.16) and latest version of firefox (53.0 ,64-bit) this problem still occurs

LOG:
93119339301 geckodriver INFO Listening on 127.0.0.1:38452
1493119340008 geckodriver::marionette INFO Starting browser \?\C:\Program Files\Mozilla Firefox\firefox.exe with args ["-marionette"]
1493119340422 addons.manager ERROR startup failed: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIFile.create]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: resource://gre/modules/FileUtils.jsm :: FileUtils_getDir :: line 70" data: no] Stack trace: FileUtils_getDir()@resource://gre/modules/FileUtils.jsm:70 < FileUtils_getFile()@resource://gre/modules/FileUtils.jsm:42 < validateBlocklist()@resource://gre/modules/AddonManager.jsm:671 < startup()@resource://gre/modules/AddonManager.jsm:834 < startup()@resource://gre/modules/AddonManager.jsm:3129 < observe()@resource://gre/components/addonManager.js:65
JavaScript error: resource://gre/modules/AddonManager.jsm, line 1657: NS_ERROR_NOT_INITIALIZED: AddonManager is not initialized
1493119341959 Marionette INFO Listening on port 58458
JavaScript error: resource://gre/modules/AddonManager.jsm, line 2570: NS_ERROR_NOT_INITIALIZED: AddonManager is not initialized

Failure in before hook:DriverHelper.SetUp()

Message: org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{marionette=true, browserName=firefox, moz:firefoxOptions=org.openqa.selenium.firefox.FirefoxOptions@13d4992d, version=, platform=ANY, firefox_profile=org.openqa.selenium.firefox.FirefoxProfile@302f7971}], required capabilities = Capabilities [{}]
Build info: version: '3.2.0', revision: '8c03df6b79', time: '2017-02-23 10:51:31 +0000'
System info: host: 'LTPLA102016', ip: '192.168.50.128', os.name: 'Windows 7', os.arch: 'amd64', 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)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:604)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:244)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:293)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:272)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:267)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:130)
at nl.esize.cucumber.stepdefinition.DriverHelper.SetUp(DriverHelper.java:31)
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:498)
at cucumber.runtime.Utils$1.call(Utils.java:40)
at cucumber.runtime.Timeout.timeout(Timeout.java:16)
at cucumber.runtime.Utils.invoke(Utils.java:34)
at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
at cucumber.runtime.Runtime.runHookIfTagsMatch(Runtime.java:224)
at cucumber.runtime.Runtime.runHooks(Runtime.java:212)
at cucumber.runtime.Runtime.runBeforeHooks(Runtime.java:202)
at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:40)
at cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:102)
at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63)
at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18)
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 cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:70)
at cucumber.api.junit.Cucumber.runChild(Cucumber.java:95)
at cucumber.api.junit.Cucumber.runChild(Cucumber.java:38)
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 cucumber.api.junit.Cucumber.run(Cucumber.java:100)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)

All 26 comments

I am having the exact same issue except when being used via Protractor trying to connect create a session with Firefox 52 on Selenium Standalone Server:

SessionNotCreatedError: Unable to create new remote session. desired capabilities = Capabilities [{count=1, browserName=firefox, moz:firefoxOptions=org.openqa.selenium.firefox.FirefoxOptions@4599a6b7, firefox_profile=org.openqa.selenium.firefox.FirefoxProfile@6dd79d50}], required capabilities = Capabilities [{}]
Build info: version: '3.2.0', revision: '8c03df6', time: '2017-03-02 09:34:51 -0800'
System info: host: 'MYPC', ip: '137.221.194.135', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_121'
Driver info: driver.version: FirefoxDriver

OS: Windows 7 (64 bit)
Selenium Standalone Server: 3.2.0
Browser: Firefox 52
GeckoDriver: 0.15.0
_More detailed version info in log message above._

I believe the issue is because we're using geckodriver 0.15 with selenium
3.2.0. We need to update to selenium 3.3.0.

On Mar 10, 2017 12:07, "hudson-t" notifications@github.com wrote:

I am having the exact same issue except when being used via Protractor
trying to connect create a session with Firefox 52 on Selenium Standalone
Server:

SessionNotCreatedError: Unable to create new remote session. desired capabilities = Capabilities [{count=1, browserName=firefox, moz:firefoxOptions=org.openqa.selenium.firefox.FirefoxOptions@4599a6b7, firefox_profile=org.openqa.selenium.firefox.FirefoxProfile@6dd79d50}], required capabilities = Capabilities [{}]
Build info: version: '3.2.0', revision: '8c03df6', time: '2017-03-02 09:34:51 -0800'
System info: host: 'MYPC', ip: '137.221.194.135', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_121'
Driver info: driver.version: FirefoxDriver

OS: Windows 7 (64 bit)
Selenium Standalone Server: 3.2.0
Browser: Firefox 52
GeckoDriver: 0.15.0
More detailed version info in log message above.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/SeleniumHQ/selenium/issues/3630#issuecomment-285629195,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APDfwCTtrz5IJK9Joff_-rH1wl-Xvibfks5rkSDdgaJpZM4MYN1g
.

@Adrian79IS - just be aware that this might not be a solution. As 3.3.0 is broken: #3618

I just downgraded to geckodriver 0.14.0 and it now works!

Hmmm, interesting, it works fine for me.

On Fri, Mar 10, 2017 at 12:58 PM, hudson-t notifications@github.com wrote:

@Adrian79IS https://github.com/Adrian79IS - just be aware that this
might not be a solution. As 3.3.0 is broken: #3618
https://github.com/SeleniumHQ/selenium/issues/3618

I just downgraded to geckodriver 0.14.0 and it now works!

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/SeleniumHQ/selenium/issues/3630#issuecomment-285640265,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APDfwId6IrJiTfEDMaQ9bd3Ho2Zvtc47ks5rkSzKgaJpZM4MYN1g
.

--
Best Regards,
Adrian

@hudson-t . Use 3.3.1. It's work

3.3.1 is now working for me with 0.15.0!

@hudson-t
I can't find 3.3.1 on http://www.seleniumhq.org/download/
Where did you get selenium standalone 3.3.1 ?

Thanks

@kmelderis,

I always check http://selenium-release.storage.googleapis.com/index.html, go to "3.3".
http://www.seleniumhq.org/download/ is not usually updated right away after a release.

closing as we have released 3.3.1 with the fix

I tried multiple codes for Selenium 3.3.1 + Gecko 0.15.0 + FF 52.0.1 + Mac Sierra 64-bit 10.12.3

-----

WebDriver wd = new FirefoxDriver();

-----

DesiredCapabilities caps = new FirefoxOptions().setProfile(new FirefoxProfile()).addTo(DesiredCapabilities.firefox());

wd = new FirefoxDriver(caps);

----

And more with profile only, with options only.

Everytime it is throwing me same exception

Unable to start session

Could somebody help me on this?

@sspgupta
Since Selenium 3.0.0, you must use geckodriver to initialise FirefoxDriver.
A driver must know location of its binary (chromedriver for chrome, geckodriver for firefox);
System.setProperty("webdriver.chrome.driver", "/resources/drivers/chromedriver.exe");
System.setProperty("webdriver.gecko.driver", "/resources/drivers/geckodriver.exe");
(^ that is a hardcoded example, directory can be whatever you set it to be)
When setting up remoteWebDriver you would instead need to set up Selenium Grid with that information.

(best to search the web with slices from your stack trace, plenty of Q&A since Selenium 3.0.0 out there)

Sorry as I forgot to mention about that, but i am using gecko and chrome drivers and specifying them as system properties before initializing FirefoxDriver.

I would paste whole logs and sample code by today evening.

I am facing the same issue. Getting 'SessionNotCreatedException' when trying to launch FF.

Environment:

OS:
Windows 7 Professional x64
Selenium Version:
selenium-server-standalone-3.3.1.jar
Browser:
Firefox 52 (64 bit)
Marionette Driver :
geckodriver_v0.15_64.exe

It works seamlessly when i use 0.14v gecko driver. I have to use 0.15 gecko as 0.15 contains fix for movetoelement. Any idea of what may be going wrong. See below how I am instantiating the firefox browser and also the error log:

Code
System.setProperty("webdriver.gecko.driver", "PathToGeckoDriver");
FirefoxOptions ffoptions = new FirefoxOptions();
ffoptions.setBinary("C:\PathTo\firefox.exe");
DesiredCapabilities ffcap = DesiredCapabilities.firefox();
ffcap.setCapability("moz:FirefoxOptions", ffoptions);
ProfilesIni allProfiles = new ProfilesIni();
FirefoxProfile ffProfile = allProfiles.getProfile("SeleniumProfile");
ffcap.setCapability(FirefoxDriver.PROFILE, ffProfile);
D8 = new FirefoxDriver(ffcap);
where D8 is declared as static RemoteWebDriver D8;

I noticed that it launches FF browser (infact 2 windows) but then I immediately get an 'Unable to create new remote session' error and the script execution fails.

Error Log:
PreviousExperimentProvider
1491507335506 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider
Apr 06, 2017 3:35:37 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Falling back to original OSS JSON Wire Protocol.
Apr 06, 2017 3:35:37 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Falling back to straight W3C remote end connection
Apr 06, 2017 3:35:37 PM seleniumWebDriver.SeleniumWD setBrowser
Unable to create new remote session. desired capabilities = Capabilities [{marionette=true, moz:FirefoxOptions=org.openqa.selenium.firefox.FirefoxOptions@11f0a5a1, firefoxOptions=org.openqa.selenium.firefox.FirefoxOptions@10f7f7de, browserName=firefox, moz:firefoxOptions=org.openqa.selenium.firefox.FirefoxOptions@10f7f7de, version=, platform=ANY, firefox_profile=org.openqa.selenium.firefox.F...}], required capabilities = Capabilities [{}]
Build info: version: 'unknown', revision: '1969d75', time: '2016-10-18 09:43:45 -0700'
System info: host: ccccc', ip: 'xx', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_111'
Driver info: driver.version: FirefoxDriver

I am seeing this on Windows 7 Enterprise with 3.3.1. It works if I use geckodriver 0.14.

I'm facing the exact same problems, downgrading to 0.14 works but then i'm running into a sepperate issue where the suggested fix is to upgrade to 0.15 so i'm kinda stuck now.

EDIT:
even when using the latest version of selenium (3.4.0), the latest geckodriver (0.16) and latest version of firefox (53.0 ,64-bit) this problem still occurs

LOG:
93119339301 geckodriver INFO Listening on 127.0.0.1:38452
1493119340008 geckodriver::marionette INFO Starting browser \?\C:\Program Files\Mozilla Firefox\firefox.exe with args ["-marionette"]
1493119340422 addons.manager ERROR startup failed: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIFile.create]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: resource://gre/modules/FileUtils.jsm :: FileUtils_getDir :: line 70" data: no] Stack trace: FileUtils_getDir()@resource://gre/modules/FileUtils.jsm:70 < FileUtils_getFile()@resource://gre/modules/FileUtils.jsm:42 < validateBlocklist()@resource://gre/modules/AddonManager.jsm:671 < startup()@resource://gre/modules/AddonManager.jsm:834 < startup()@resource://gre/modules/AddonManager.jsm:3129 < observe()@resource://gre/components/addonManager.js:65
JavaScript error: resource://gre/modules/AddonManager.jsm, line 1657: NS_ERROR_NOT_INITIALIZED: AddonManager is not initialized
1493119341959 Marionette INFO Listening on port 58458
JavaScript error: resource://gre/modules/AddonManager.jsm, line 2570: NS_ERROR_NOT_INITIALIZED: AddonManager is not initialized

Failure in before hook:DriverHelper.SetUp()

Message: org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{marionette=true, browserName=firefox, moz:firefoxOptions=org.openqa.selenium.firefox.FirefoxOptions@13d4992d, version=, platform=ANY, firefox_profile=org.openqa.selenium.firefox.FirefoxProfile@302f7971}], required capabilities = Capabilities [{}]
Build info: version: '3.2.0', revision: '8c03df6b79', time: '2017-02-23 10:51:31 +0000'
System info: host: 'LTPLA102016', ip: '192.168.50.128', os.name: 'Windows 7', os.arch: 'amd64', 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)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:604)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:244)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:293)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:272)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:267)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:130)
at nl.esize.cucumber.stepdefinition.DriverHelper.SetUp(DriverHelper.java:31)
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:498)
at cucumber.runtime.Utils$1.call(Utils.java:40)
at cucumber.runtime.Timeout.timeout(Timeout.java:16)
at cucumber.runtime.Utils.invoke(Utils.java:34)
at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
at cucumber.runtime.Runtime.runHookIfTagsMatch(Runtime.java:224)
at cucumber.runtime.Runtime.runHooks(Runtime.java:212)
at cucumber.runtime.Runtime.runBeforeHooks(Runtime.java:202)
at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:40)
at cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:102)
at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63)
at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18)
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 cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:70)
at cucumber.api.junit.Cucumber.runChild(Cucumber.java:95)
at cucumber.api.junit.Cucumber.runChild(Cucumber.java:38)
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 cucumber.api.junit.Cucumber.run(Cucumber.java:100)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)

Hi ,
I'm getting this error on Ubuntu16.04, and Eclipse Oxygen 4.7.1a , using geckodriver v0.19.1 and Selenium 3.1 . Or , better , as @AutomatedTester said ! " 3.3.1"

Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{marionette=true, firefoxOptions=org.openqa.selenium.firefox.FirefoxOptions@2f943d71, browserName=firefox, moz:firefoxOptions=org.openqa.selenium.firefox.FirefoxOptions@2f943d71, version=, platform=ANY}], required capabilities = Capabilities [{}]

I've fixed that using selenium 3.2.0. This is my maven dependency


org.seleniumhq.selenium
selenium-server
3.2.0

Hi, I am trying to open the URL in the following environment. Kindly let me know if it works.

Selenium version - 3.8.1.
Gecko Driver version - 0.19.1.
Mozilla Firefox version - 57.0.2 (64-bit)

The Mozilla Firefox window appears but the URL mentioned in the code is not getting up. Below are the code and error details.

Source Code

package test.selenium.webdriver.Urloop.testing;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.Test;

public class Test_001 {

@Test
public void test_1() throws InterruptedException{
    System.setProperty("webdriver.gecko.driver", "C://E drive data//Sankalp data//geckodriver-v0.19.1-win64//geckodriver.exe");
    Thread.sleep(2000);
    WebDriver driver=new FirefoxDriver();
    Thread.sleep(5000);
    driver.get("http://www.facebook.com");
}

}

Error Logs

[RemoteTestNG] detected TestNG version 6.12.0
1513580177090 geckodriver INFO geckodriver 0.19.1
1513580177125 geckodriver INFO Listening on 127.0.0.1:28252
log4j:WARN No appenders could be found for logger (org.apache.http.client.protocol.RequestAddCookies).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
1513580178617 mozrunner::runner INFO Running command: "C:\Program Files\Mozilla Firefox\firefox.exe" "-marionette" "-profile" "C:\Users\TRINGA~1\AppData\Local\Temp\rust_mozprofile.OFAoXVuMrmEO"
1513580181973 Marionette INFO Enabled via --marionette
1513580189951 Marionette INFO Listening on port 51082
1513580190779 Marionette DEBUG Register listener.js for window 4294967297
FAILED: test_1
org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{moz:firefoxOptions={binary=Optional.empty, args=[], legacy=null, logLevel=null, prefs={}, profile=null}}], required capabilities = Capabilities [{moz:firefoxOptions={binary=Optional.empty, args=[], legacy=null, logLevel=null, prefs={}, profile=null}}]
Build info: version: 'unknown', revision: '5234b32', time: '2017-03-10 09:00:17 -0800'
System info: host: 'DESKTOP-2TFCP46', ip: '10.1.0.172', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_144'
Driver info: driver.version: FirefoxDriver
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:126)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:604)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:244)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:218)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:125)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:121)
at test.selenium.webdriver.Urloop.testing.Test_001.test_1(Test_001.java:13)
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:108)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:669)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:877)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1201)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
at org.testng.TestRunner.privateRun(TestRunner.java:776)
at org.testng.TestRunner.run(TestRunner.java:634)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:425)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:420)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:385)
at org.testng.SuiteRunner.run(SuiteRunner.java:334)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1318)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1243)
at org.testng.TestNG.runSuites(TestNG.java:1161)
at org.testng.TestNG.run(TestNG.java:1129)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:114)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)

I'm having the same issue with

Selenium - 3.8.1
Gecko - 0.19.1
Firefox 57.0.4

1516216048441 geckodriver INFO geckodriver 0.19.1
1516216048445 geckodriver INFO Listening on 127.0.0.1:20664
1516216048747 mozrunner::runner INFO Running command: "/Applications/Firefox.app/Contents/MacOS/firefox-bin" "-marionette" "-profile" "/var/folders/xh/zfysp9rj6y93l0prlnygm2bh0000gn/T/rust_mozprofile.PzEycl2OWV78"
1516216049242 Marionette INFO Enabled via --marionette
2018-01-17 11:07:29.944 plugin-container[2028:65304] * CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0xb13b, name = 'com.apple.tsm.portname'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2018-01-17 11:07:29.944 plugin-container[2028:65304] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2018-01-17 11:07:29.945 plugin-container[2028:65304] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2018-01-17 11:07:29.945 plugin-container[2028:65304] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2018-01-17 11:07:29.945 plugin-container[2028:65304] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2018-01-17 11:07:29.946 plugin-container[2028:65304] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2018-01-17 11:07:29.946 plugin-container[2028:65304] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2018-01-17 11:07:29.947 plugin-container[2028:65304] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2018-01-17 11:07:29.947 plugin-container[2028:65304] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2018-01-17 11:07:29.947 plugin-container[2028:65304] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2018-01-17 11:07:29.947 plugin-container[2028:65304] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2018-01-17 11:07:29.948 plugin-container[2028:65304] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2018-01-17 11:07:29.948 plugin-container[2028:65304] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2018-01-17 11:07:29.948 plugin-container[2028:65304] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2018-01-17 11:07:29.948 plugin-container[2028:65304] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2018-01-17 11:07:29.948 plugin-container[2028:65304] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2018-01-17 11:07:29.948 plugin-container[2028:65304] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2018-01-17 11:07:29.949 plugin-container[2028:65304] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2018-01-17 11:07:29.949 plugin-container[2028:65304] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2018-01-17 11:07:29.949 plugin-container[2028:65304] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
2018-01-17 11:07:29.950 plugin-container[2028:65304] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data
1516216050333 Marionette INFO Listening on port 63677
1516216050452 Marionette DEBUG Register listener.js for window 2147483649
Jan 17, 2018 11:07:30 AM org.springframework.context.annotation.AnnotationConfigApplicationContext refresh
WARNING: Exception encountered during context initialization - cancelling refresh attempt: nested exception is org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities {browserName: firefox, marionette: true, moz:firefoxOptions: {args: [], prefs: {}}, platform: ANY, version: }, required capabilities = Capabilities [{}]
Build info: version: '3.8.1', revision: '6e95a6684b', time: '2017-12-01T18:33:54.468Z'

I have the same issue with the following:

geckodriver==0.19.1
selenium==3.9.0
firefox ESR==52.6.0 (64-bit)

1518777870999 geckodriver INFO geckodriver 0.19.1
1518777871015 geckodriver INFO Listening on 127.0.0.1:63462
1518777872053 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-profile" "/tmp/rust_mozprofile.PXa7qX3Vky8a"
1518777872404 addons.manager DEBUG Application has been upgraded
1518777872427 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"]
1518777872430 addons.manager DEBUG Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"]
1518777872434 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/GMPProvider.jsm
1518777872436 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/PluginProvider.jsm
1518777872437 addons.manager DEBUG Starting provider: XPIProvider
1518777872438 addons.xpi DEBUG startup
1518777872438 addons.xpi INFO SystemAddonInstallLocation directory is missing
1518777872439 addons.xpi INFO Mapping [email protected] to /usr/local/firefox/browser/features/[email protected]
1518777872440 addons.xpi INFO Mapping [email protected] to /usr/local/firefox/browser/features/[email protected]
1518777872440 addons.xpi INFO Mapping [email protected] to /usr/local/firefox/browser/features/[email protected]
1518777872440 addons.xpi INFO Mapping [email protected] to /usr/local/firefox/browser/features/[email protected]
1518777872441 addons.xpi INFO Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to /usr/local/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
1518777872442 addons.xpi DEBUG checkForChanges
1518777872442 addons.xpi INFO SystemAddonInstallLocation directory is missing
1518777872442 addons.xpi DEBUG Loaded add-on state from prefs: {}
1518777872444 addons.xpi DEBUG New add-on [email protected] in app-system-defaults
1518777872444 addons.xpi DEBUG getModTime: Recursive scan of [email protected]
1518777872445 addons.xpi DEBUG New add-on [email protected] in app-system-defaults
1518777872445 addons.xpi DEBUG getModTime: Recursive scan of [email protected]
1518777872446 addons.xpi DEBUG New add-on [email protected] in app-system-defaults
1518777872446 addons.xpi DEBUG getModTime: Recursive scan of [email protected]
1518777872447 addons.xpi DEBUG New add-on [email protected] in app-system-defaults
1518777872447 addons.xpi DEBUG getModTime: Recursive scan of [email protected]
1518777872448 addons.xpi DEBUG New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} in app-global
1518777872448 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1518777872449 addons.xpi DEBUG getInstallState changed: true, state: {"app-system-defaults":{"[email protected]":{"d":"/usr/local/firefox/browser/features/[email protected]","st":1517846233000},"[email protected]":{"d":"/usr/local/firefox/browser/features/[email protected]","st":1517846233000},"[email protected]":{"d":"/usr/local/firefox/browser/features/[email protected]","st":1517846233000},"[email protected]":{"d":"/usr/local/firefox/browser/features/[email protected]","st":1517846233000}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"/usr/local/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","st":1517846233000}}}
1518777872457 addons.xpi-utils DEBUG Opening XPI database /tmp/rust_mozprofile.PXa7qX3Vky8a/extensions.json
1518777872459 addons.xpi-utils DEBUG New add-on [email protected] installed in app-system-defaults
* Blocklist::_loadBlocklistFromFile: blocklist is disabled
1518777872471 DeferredSave.extensions.json DEBUG Save changes
1518777872472 addons.xpi-utils DEBUG New add-on [email protected] installed in app-system-defaults
1518777872475 DeferredSave.extensions.json DEBUG Starting timer
1518777872481 DeferredSave.extensions.json DEBUG Save changes
1518777872482 addons.xpi-utils DEBUG New add-on [email protected] installed in app-system-defaults
1518777872488 DeferredSave.extensions.json DEBUG Save changes
1518777872489 addons.xpi-utils DEBUG New add-on [email protected] installed in app-system-defaults
1518777872494 DeferredSave.extensions.json DEBUG Save changes
1518777872495 addons.xpi-utils DEBUG New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global
1518777872500 DeferredSave.extensions.json DEBUG Save changes
1518777872501 addons.manager DEBUG Registering startup change 'installed' for [email protected]
1518777872511 addons.xpi DEBUG Loading bootstrap scope from /usr/local/firefox/browser/features/[email protected]
1518777872516 addons.xpi DEBUG Calling bootstrap method install on [email protected] version 1.0
1518777872516 addons.xpi-utils DEBUG Make addon app-system-defaults:[email protected] visible
1518777872516 DeferredSave.extensions.json DEBUG Save changes
1518777872517 addons.manager DEBUG Registering startup change 'installed' for [email protected]
1518777872518 addons.xpi DEBUG Loading bootstrap scope from /usr/local/firefox/browser/features/[email protected]
1518777872521 addons.xpi DEBUG Calling bootstrap method install on [email protected] version 1.0.5
1518777872521 addons.xpi-utils DEBUG Make addon app-system-defaults:[email protected] visible
1518777872523 DeferredSave.extensions.json DEBUG Save changes
1518777872524 addons.manager DEBUG Registering startup change 'installed' for [email protected]
1518777872525 addons.xpi DEBUG Loading bootstrap scope from /usr/local/firefox/browser/features/[email protected]
1518777872528 addons.xpi DEBUG Calling bootstrap method install on [email protected] version 1.10
1518777872529 addons.xpi-utils DEBUG Make addon app-system-defaults:[email protected] visible
1518777872530 DeferredSave.extensions.json DEBUG Save changes
1518777872530 addons.manager DEBUG Registering startup change 'installed' for [email protected]
1518777872531 addons.xpi DEBUG Loading bootstrap scope from /usr/local/firefox/browser/features/[email protected]
1518777872533 addons.xpi DEBUG Calling bootstrap method install on [email protected] version 2.0
1518777872533 addons.xpi-utils DEBUG Make addon app-system-defaults:[email protected] visible
1518777872534 DeferredSave.extensions.json DEBUG Save changes
1518777872534 addons.xpi-utils DEBUG Make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd} visible
1518777872534 DeferredSave.extensions.json DEBUG Save changes
1518777872534 addons.xpi DEBUG Updating XPIState for {"id":"[email protected]","syncGUID":"{c7487b56-bac5-467f-bf6e-8acc80a0bb68}","location":"app-system-defaults","version":"1.0","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Web Compat","description":"Urgent post-release fixes for web compatibility.","creator":null,"homepageURL":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/usr/local/firefox/browser/features/[email protected]","installDate":1517846233000,"updateDate":1517846233000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":1456,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"52.6.0","maxVersion":"52."}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false}
1518777872535 addons.xpi DEBUG getModTime: Recursive scan of [email protected]
1518777872535 addons.xpi DEBUG Updating XPIState for {"id":"[email protected]","syncGUID":"{1a603524-ee15-4cb0-898d-2c51b582a577}","location":"app-system-defaults","version":"1.0.5","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Pocket","description":"When you find something you want to view later, put it in Pocket.","creator":null,"homepageURL":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/usr/local/firefox/browser/features/[email protected]","installDate":1517846233000,"updateDate":1517846233000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":920281,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"52.6.0","maxVersion":"52.
"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false}
1518777872535 addons.xpi DEBUG getModTime: Recursive scan of [email protected]
1518777872537 addons.xpi DEBUG Updating XPIState for {"id":"[email protected]","syncGUID":"{f0a8bd31-5063-47b1-aae4-78c399e9febb}","location":"app-system-defaults","version":"1.10","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Multi-process staged rollout","description":"Staged rollout of Firefox multi-process feature.","creator":null,"homepageURL":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/usr/local/firefox/browser/features/[email protected]","installDate":1517846233000,"updateDate":1517846233000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":8145,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"52.6.0","maxVersion":"52."}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false}
1518777872537 addons.xpi DEBUG getModTime: Recursive scan of [email protected]
1518777872537 addons.xpi DEBUG Updating XPIState for {"id":"[email protected]","syncGUID":"{bcb77724-d0c7-4769-b598-1dd18dec55f3}","location":"app-system-defaults","version":"2.0","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Application Update Service Helper","description":"Sets value(s) in the update url based on custom checks.","creator":null,"homepageURL":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"/usr/local/firefox/browser/features/[email protected]","installDate":1517846233000,"updateDate":1517846233000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":8488,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"52.6.0","maxVersion":"52.
"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false}
1518777872537 addons.xpi DEBUG getModTime: Recursive scan of [email protected]
1518777872538 addons.xpi DEBUG Updating XPIState for {"id":"{972ce4c6-7e08-4474-a285-3208198ce6fd}","syncGUID":"{27c133e3-ace5-46d3-9ab5-85d3ea90aba9}","location":"app-global","version":"52.6.0","type":"theme","internalName":"classic/1.0","updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{"32":"icon.png","48":"icon.png"},"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":"/usr/local/firefox/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","installDate":1517846233000,"updateDate":1517846233000,"applyBackgroundUpdates":1,"skinnable":true,"size":4932,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"52.6.0","maxVersion":"52.6.0"}],"targetPlatforms":[],"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false}
1518777872538 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1518777872540 DeferredSave.extensions.json DEBUG Save changes
1518777872540 addons.xpi DEBUG Updating database with changes to installed add-ons
1518777872540 addons.xpi-utils DEBUG Updating add-on states
1518777872541 addons.xpi-utils DEBUG Writing add-ons list
1518777872542 addons.xpi DEBUG Registering manifest for /usr/local/firefox/browser/features/[email protected]
1518777872543 addons.xpi DEBUG Calling bootstrap method startup on [email protected] version 2.0
1518777872544 addons.xpi DEBUG Registering manifest for /usr/local/firefox/browser/features/[email protected]
1518777872544 addons.xpi DEBUG Calling bootstrap method startup on [email protected] version 1.10
1518777872545 addons.xpi DEBUG Registering manifest for /usr/local/firefox/browser/features/[email protected]
1518777872546 addons.xpi DEBUG Calling bootstrap method startup on [email protected] version 1.0.5
1518777872547 addons.xpi DEBUG Registering manifest for /usr/local/firefox/browser/features/[email protected]
1518777872548 addons.xpi DEBUG Calling bootstrap method startup on [email protected] version 1.0
1518777872550 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1518777872550 addons.manager DEBUG Provider finished startup: XPIProvider
1518777872550 addons.manager DEBUG Starting provider: LightweightThemeManager
1518777872551 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1518777872551 addons.manager DEBUG Provider finished startup: LightweightThemeManager
1518777872551 addons.manager DEBUG Starting provider: GMPProvider
1518777872560 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1518777872560 addons.manager DEBUG Provider finished startup: GMPProvider
1518777872560 addons.manager DEBUG Starting provider: PluginProvider
1518777872561 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1518777872561 addons.manager DEBUG Provider finished startup: PluginProvider
1518777872561 addons.manager DEBUG Completed startup sequence
1518777872963 Marionette INFO Listening on port 2828
1518777872994 addons.manager DEBUG Starting provider:
1518777872994 addons.manager DEBUG Registering shutdown blocker for
1518777872995 addons.manager DEBUG Provider finished startup:
1518777873012 addons.manager DEBUG Starting provider: PreviousExperimentProvider
1518777873013 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider
1518777873015 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider
1518777873021 DeferredSave.extensions.json DEBUG Starting write
1518777873266 DeferredSave.extensions.json DEBUG Write succeeded
1518777873268 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 19
1518777934418 addons.productaddons INFO sending request to: https://aus5.mozilla.org/update/3/GMP/52.6.0/20180118122319/Linux_x86_64-gcc3/en-US/esr/Linux%203.10.0-693.17.1.el7.x86_64%20(GTK%203.22.10%2Clibpulse%2010.0.0)/default/default/update.xml
1518777935459 addons.productaddons INFO Completed downloading document
1518777936296 addons.productaddons INFO downloadXHR File download. status=200
1518777936302 addons.productaddons INFO Downloaded file will be saved to /tmp/tmpaddon

@aronaks It looks like you are trying to use FF ESR v52.6.0 with GeckoDriver/Marionette. That won't work. You have to use the legacy FirefoxDriver with v52.6.0. This means you have to set "marionette=false" via whatever client-bindings you are using. And, if running as a grid, you have to specify "marionette=false" in the node configuration as well.

@schmidtkp I have also run into this issue with Firefox 52.6 esr and geckodriver 0.19. and setting marionette to false worked. I thought all releases after Firefox 47 are supposed to be driven by the geckodriver instead of the legacy driver. Where can I find out about the lists of compatible Firefox version for geckodriver?Or is it a bug logged for geckodriver? Thanks

@emilypoon I learned about using the legacy FirefoxDriver for testing against Extended Service Release (ESR) via the #selenium IRC channel. This is also were I learned about having to set marionette=false for grid node configurations. FYI... If testing Safari Technology Preview, you need to set that in the node config as well. To find out about all-things GeckoDriver I would suggest the GeckoDriver README

Selenium 3.4.0 now recommends Geckodriver v0.16.0 strongly. This combo worked well with me.
Please refer the below link
https://stackoverflow.com/questions/45510338/selenium-webdriver-3-4-0-geckodriver-0-18-0-firefox-which-combination-w

@sirinibin both of those are pretty outdated by now

@cgoldberg :. I have tried the latest versions of both selenium standalone and geckodriver in my Mac os Sierra. It wasn't working for me.

I'm trying to launch a browser from SoapUI, used to work fine for Chrome and IE. I just added FF.
None of this work now.

Just downloaded the latest Selenium Client/WenDriver v3.11 (Also fails with v3.9)
Also downloaded Gecko Driver v20.1 on 4/10

java.lang.NoClassDefFoundError: Could not initialize class org.openqa.selenium.remote.service.DriverCommandExecutor

Was this page helpful?
0 / 5 - 0 ratings