Unable to create new remote session

Hi,

My code is:
public static void main(String[] args) throws InterruptedException {
System.setProperty(“webdriver.gecko.driver”, “C:\\Users\\chavama\\Desktop\\geckodriver-v0.11.1-win64\\geckodriver.exe”);
DesiredCapabilities capabilities = DesiredCapabilities.firefox();
capabilities.setCapability(“marionette”, true);
WebDriver driver = new FirefoxDriver();
driver.get(“http://www.toolsqa.com”);
System.out.println(“Successfully opened the website www.Store.Demoqa.com”);
Thread.sleep(5);
driver.quit();
}

After run I get:
1478774914084 geckodriver INFO Listening on 127.0.0.1:10319
Nov 10, 2016 12:48:34 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Attempting bi-dialect session, assuming Postel’s Law holds true on the remote end
1478774914678 mozprofile::profile INFO Using profile path C:\Users\chavama\AppData\Local\Temp\rust_mozprofile.eU8bEfGLPjvF
1478774914685 geckodriver::marionette INFO Starting browser C:\Program Files (x86)\Mozilla Firefox\firefox.exe
1478774914696 geckodriver::marionette INFO Connecting to Marionette on localhost:17028
Nov 10, 2016 12:48:35 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Falling back to original OSS JSON Wire Protocol.
1478774915854 mozprofile::profile INFO Using profile path C:\Users\chavama\AppData\Local\Temp\rust_mozprofile.Nr2pFsic0c1V
1478774915861 geckodriver::marionette INFO Starting browser C:\Program Files (x86)\Mozilla Firefox\firefox.exe
1478774915904 geckodriver::marionette INFO Connecting to Marionette on localhost:17034
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 677: aUrl is undefined
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 677: aUrl is undefined
Nov 10, 2016 12:48:37 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Falling back to straight W3C remote end connection
1478774917009 mozprofile::profile INFO Using profile path C:\Users\chavama\AppData\Local\Temp\rust_mozprofile.StGvb2SeyGVi
1478774917017 geckodriver::marionette INFO Starting browser C:\Program Files (x86)\Mozilla Firefox\firefox.exe
1478774917033 geckodriver::marionette INFO Connecting to Marionette on localhost:17040
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 677: aUrl is undefined
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@402a079c, browserName=firefox, moz:firefoxOptions=org.openqa.selenium.firefox.FirefoxOptions@402a079c, version=, platform=ANY}], required capabilities = Capabilities [{}]
Build info: version: ‘unknown’, revision: ‘1969d75′, time: ‘2016-10-18 09:43:45 -0700′
System info: host: ‘TEMP-3′, ip: ‘192.168.56.1’, os.name: ‘Windows 7′, os.arch: ‘amd64′, os.version: ‘6.1’, java.version: ‘1.8.0_20′
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:238)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:127)
at automationFramework.FirstTestCase.main(FirstTestCase.java:13)

katzinelb Default Asked on November 10, 2016 in Selenium WebDriver.
Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.