Different ways to specify the configuration

There are two ways to specify the configuration parameter to the Selenium Grid's hub and node. The first one is what we have seen all this time; that is, specifying the configuration parameters over the command line. The second way of doing it is by providing a JSON file that contains all these configuration parameters.

A node configuration file (say, nodeConfig.json) — a typical JSON file having all the configuration parameters — looks similar to the following:

{  "class": "org.openqa.grid.common.RegistrationRequest",  "capabilities": [   {   "seleniumProtocol": "WebDriver",   "browserName": "internet explorer",   "version": "10",   "maxInstances": 1,   "platform" : "WINDOWS"   }  ],  "configuration": { "port": ...

Get Selenium WebDriver 3 Practical Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.