Selenium 3.0 Firefx Driver fails with org.openqa.selenium.SessionNotCreatedException:

2,236 views
Skip to first unread message

King Arsan

unread,
Oct 18, 2016, 7:29:26 AM10/18/16
to Selenium Users

Selenium 3.0 Firefx Driver fails with org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session.


System.setProperty("webdriver.gecko.driver", "..<Path>../geckodriver.exe");
capabilities = DesiredCapabilities.firefox();
capabilities.setCapability("marionette", true);
driver = new FirefoxDriver(capabilities);



Caused by: org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{marionette=true, firefoxOptions=org.openqa.selenium.firefox.FirefoxOptions@23aa363a, browserName=firefox, moz:firefoxOptions=org.openqa.selenium.firefox.FirefoxOptions@23aa363a, version=, platform=ANY}], required capabilities = Capabilities [{}]
Build info: version: '3.0.0', revision: '350cf60', time: '2016-10-13 10:48:57 -0700'
System info: host: 'D202540', ip: '10.22.19.193', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_45'
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:601)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:241)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:128)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:259)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:247)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:242)
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:135)

Deepa Padmanabhan

unread,
Oct 26, 2016, 11:44:25 PM10/26/16
to Selenium Users
Im facing the exact same issue. Were you able to get past this?

virender rana

unread,
Jan 11, 2017, 8:11:32 AM1/11/17
to Selenium Users
I am also facing same issue not only in Firefox but in chrome also.Is there any one have solution of this issue ?

shruthi v v

unread,
Jan 11, 2017, 8:16:32 AM1/11/17
to seleniu...@googlegroups.com
Which version of geckodriver are you using?

















Thanks & Regards,
Shruthi v v 

--
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/1f30c8d1-de39-4b56-ab1b-a14b101de86c%40googlegroups.com.

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

Anish Pillai

unread,
Jan 11, 2017, 6:34:23 PM1/11/17
to Selenium Users
Hi,

Use the latest versions of FF, Selenium and GeckoDriver and then remove the setCapabilities("marionette", true) from the above code and see if it works. Check this link for more details -

http://www.automationtestinghub.com/selenium-3-0-launch-firefox-with-geckodriver/


Cheers,
Anish

harshal shewale

unread,
Jan 12, 2017, 6:24:39 AM1/12/17
to Selenium Users
Reply all
Reply to author
Forward
0 new messages