Last active
May 6, 2020 16:26
-
-
Save krmahadevan/1106418 to your computer and use it in GitHub Desktop.
A JSON configuration file that can be used to spawn a webdriver node.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"capabilities": | |
[ | |
{ | |
"browserName":"firefox", | |
"acceptSslCerts":true, | |
"javascriptEnabled":true, | |
"takesScreenshot":true, | |
"firefox_profile":"", | |
"maxInstances":5 | |
}, | |
{ | |
"browserName":"chrome", | |
"maxInstances":5 | |
}, | |
{ | |
"browserName":"internet explorer", | |
"platform":"WINDOWS" | |
} | |
], | |
"configuration": | |
{ | |
"cleanUpCycle":2000, | |
"timeout":30000, | |
"proxy":"org.openqa.grid.selenium.proxy.WebDriverRemoteProxy", | |
"maxSession":5, | |
"port": 5555, | |
"host": ip, | |
"register": true, | |
"hubPort" : 4444 | |
} | |
} |
Hi Krishnan,
what does the port in the configuration section specify. The way you have used it in the batch file example... the nodes have their own ports in 5556 and 5557 ...so where does the 5555 port come in?
Thanks
Balaji
The 5555 port represents the webdriver hub.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Save this file as a text file and then provide this file as an input when you are spawning a webdriver node, using the following command start java -jar selenium-server-standalone-2.17.0.jar -role node -Dwebdriver.chrome.driver="C:/Users/krmahadevan/selenium/chromedriver.exe" -hub http://localhost:4444/grid/register-port 5556 -nodeConfig webconfig.txt