user3076252
user3076252

Reputation: 1937

Error launching RemoteWebDriver test from Eclipse

I get the following message in the Eclipse console:

unable to create selected WebDriver; exiting early. org.openqa.selenium.WebDriverException: Error forwarding the new session cannot find : {platform=ANY, browserName=firefox, version=}

Upvotes: 0

Views: 103

Answers (1)

user3076252
user3076252

Reputation: 1937

Solution: check the nodeConfig.json file and confirm that the intended browser is included in the capabilities object. In this problem, the "firefox" name:value pairs were missing.

"capabilities":
  [
    {
      "browserName": "firefox",
      "maxInstances": 5,
      "seleniumProtocol": "WebDriver"
    },      
    {
      "browserName": "chrome",
      "maxInstances": 5,
      "seleniumProtocol": "WebDriver"
    },
    {
      "platform": "WINDOWS",
      "browserName": "internet explorer",
      "maxInstances": 1,
      "seleniumProtocol": "WebDriver"
    }
  ],

Upvotes: 1

Related Questions