Franz Ebner
Franz Ebner

Reputation: 5096

WebDriver ignores Platform Capability

When I create an instance of Selenium RemoteWebDriver like

    DesiredCapabilities cap = new DesiredCapabilities("firefox", "13", Platform.VISTA);
    RemoteWebDriver driver = new RemoteWebDriver(cap);

and look into the capabilities inside I see platform=XP.

The whole Issue is also described here

Is this a bug?

Upvotes: 4

Views: 1877

Answers (2)

jimaltieri
jimaltieri

Reputation: 61

I ran into this same problem today. If you're experiencing it just like the people are in the linked bug, it is actually just a problem with the default node configuration. You can set the node configuration manually with a json file, as described here, under "Configuring the nodes by JSON".

If on each of your nodes, you have a unique json file with entries such as:

{
  "platform": "VISTA",
  "browserName": "internet explorer",
  "maxInstances": 1,
  "seleniumProtocol": "WebDriver"
}

replacing VISTA with your desired platform name, the node will only respond to these requests, and the RemoteWebDrivers will be created appropriately!

Upvotes: 2

Franz Ebner
Franz Ebner

Reputation: 5096

Found the error- description here. Looking forward for the fix.

Upvotes: 0

Related Questions