July 2019
Intermediate to advanced
536 pages
12h 57m
English
There are various command-line options available to set the hub URL, port, timeouts, registration, and so on, but instead of listing them all on the command line, the -hubConfig option allows you to pass in a JSON configuration file with all the common WebDriver desired capabilities. This makes it easier and more manageable when updating parameters and desired capabilities, and setting them on the hub propagates them down to all nodes. But these options can be overridden at the node level as well.
Here is a sample Selenium hub JSON configuration file:
// selenium_hub.json{ "_comment":"Configuration for Selenium Hub", "host":"http://localhost", "maxSession":1000, "port":4444, "cleanupCycle":5000, "timeout":600, ...Read now
Unlock full access