Batch file to start Node in Selenium 3.0
START "local-node" java -Dwebdriver.chrome.driver=chromedriver.exe -jar selenium-server-standalone-3.0.1.jar -role node -nodeConfig nodeConfig.json
Batch file to start Node in Selenium 2.0
START "local-node" java -jar selenium-server-standalone-3.0.1.jar -role node -nodeConfig nodeConfig.json -port 4451 -browser "browserName=chrome,maxInstances=4" -Dwebdriver.chrome.driver=chromedriver.exe
Take note of how the -Dwebdriver call is now before -jar, and -browser is removed. You can define the browser options in the nodeConfig json.
Take note of how the -Dwebdriver call is now before -jar, and -browser is removed. You can define the browser options in the nodeConfig json.
Reference Links:
Example Version 3 Hub JSON
https://github.com/SeleniumHQ/selenium/blob/master/java/server/src/org/openqa/grid/common/defaults/DefaultHub.json
https://github.com/SeleniumHQ/selenium/blob/master/java/server/src/org/openqa/grid/common/defaults/DefaultHub.json
Example Version 3 Node JSON
https://github.com/SeleniumHQ/selenium/blob/master/java/server/src/org/openqa/grid/common/defaults/DefaultNodeWebDriver.json
https://github.com/SeleniumHQ/selenium/blob/master/java/server/src/org/openqa/grid/common/defaults/DefaultNodeWebDriver.json
There isn't a full doc on version 3 - but this link shows some of the differences as well. https://github.com/SeleniumHQ/selenium/wiki/Grid2
Hopefully this provides some guidance if you are having trouble getting the grid to run.
Thanks,
Selenium Grid 3.0 Setup - Migrating from Version 2 to 3
Reviewed by JJ The Engineer
on
9:31 PM
Rating:
No comments: