Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
ReadMe.md
__init__.py
download_selenium_server.py
font_color
grid-hub
grid-node
grid_hub.py
grid_node.py
register-grid-node.bat
register-grid-node.sh
start-grid-hub.bat
start-grid-hub.sh

ReadMe.md

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]

Options:

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

Grid node server controlls:

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

Options:

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

When the Grid Hub Console is up and running, you'll be able to find it here: http://127.0.0.1:4444/grid/console

Now you can run your tests on the Selenium Grid:

pytest my_test_suite.py --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 my_first_test.py --server=username:key@hub.browserstack.com --port=80

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