I am using windows7 and trying to run my test cases on LINUX by setting the platform. I am specifying the browser properties in node.json as below:
{
"browserName": "chrome",
"maxInstances": 2,
"platform":"LINUX",
"seleniumProtocol": "WebDriver"
}
But, in the browser when I open the Hub url console, the result is like this. to see result click here
Here, my question is: Should we have LINUX OS to the node to say run with LINUX platform? Can anyone help me on this issue??
As per the WebDriver W3C Editor's Draft in chapter 7. Capabilities , section 7.2 Processing Capabilities there is no capability as platform
. The supported capability is platformName
and the supported values are:
linux
mac
windows
Note : This list is not exhaustive. When returning capabilities from New Session, it is valid to return a more specific platformName, allowing users to correctly identify the Operating System the WebDriver implementation is running on.
Change the capabilities in node.json as:
{
"browserName": "chrome",
"maxInstances": 2,
"platformName":"linux",
"seleniumProtocol": "WebDriver"
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.