I have set up selenium grid on local machine and a node is set up on remote machine.
The node is running
java -jar selenium-server-standalone-3.8.1.jar -role node -hub http://<hub_machine>:4444/grid/register
Now I have written robot tests to run the script on the remote machine as follows:
Open Browser google.com chrome None http://<hub_machine>:4444/wd/hub desired_capabilities=browserName:chrome,platform:WINDOWS
I also tried using the remote Webdriver as follows:
${executor}= Evaluate str('http://<hub_machine>:4444/wd/hub')
${desired capabilities}= Evaluate { "browserName": "chrome", "version": "", "platform": "VISTA", "javascriptEnabled": True}
Create Webdriver Remote desired_capabilities=${desired capabilities} command_executor=${executor}
But it the code throws an error as follows:
2018-02-20 13:33:41.655:WARN:osjs.HttpChannel:qtp662736689-13: /wd/hub/session java.io.IOException: org.openqa.grid.common.exception.GridException: Cannot extract a capabilities from the request: {"capabilities": {"alwaysMatch": {"version": "", "platform": "VISTA", "browserName": "chrome", "javascriptEnabled": true}, "firstMatch": []}, "desiredCapabilities": {"version": "", "platform": "VISTA", "browserName": "chrome", "javascriptEnabled": true}}
Please suggest how to resolve this issue.