Fetching contributors…
Cannot retrieve contributors at this time
executable file 42 lines (29 sloc) 1.58 KB

The Selenium Grid Hub

The Selenium Grid Hub lets you distribute tests to run in parallel across multiple node machines. Each node machine can then run its own allocation of tests. This allows you to run a large suite of tests very quickly.

Running the Selenium Grid Hub

The following commands will work once you've installed seleniumbase, which comes with the seleniumbase console scripts interface.

Grid Hub server controls:

seleniumbase grid-hub {start|stop|restart} [OPTIONS]


  • -v, --verbose (Increases verbosity of logging output.)

Grid node server controlls:

seleniumbase grid-node {start|stop|restart} --hub=[HUB_IP] [OPTIONS]


  • -v, --verbose (Increases verbosity of logging output.)
  • --hub=[HUB_IP] (Specifies the Grid Hub to connect to. Default: "".)

When the Grid Hub Console is up and running, you'll be able to find it here:

Now you can run your tests on the Selenium Grid:

pytest --server=IP_ADDRESS --port=4444

You can also run your tests on BrowserStack's Selenium Grid (and not worry about managing your own Selenium Grid):

pytest --port=80

More info about the Selenium Grid Hub can be found here: