recent posts

Selenium Grid 3.0 Setup - Migrating from Version 2 to 3

If you are migrating from Selenium Grid 2 to 3, there are only a few minor changes that you will need to make in the batch and json config files. The biggest issue I ran into when migrating was getting the node to start without closing immediately. In Selenium 3, you need to make sure that your -Dwebdriver call is before the -jar parameter.

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.

Reference Links:

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,

- JJ The Engineer


Selenium Grid 3.0 Setup - Migrating from Version 2 to 3 Selenium Grid 3.0 Setup - Migrating from Version 2 to 3 Reviewed by JJ The Engineer on 9:31 PM Rating: 5

No comments:

Powered by Blogger.