Pilot a selenium grid from nodejs and run several scenarios in parallel.
An example can be found in the example directory.
bin/selenium-grid example/google.js example/yahoo.js.
$ npm install selenium-grid
$ git clone https://github.com/themouette/selenium-grid.git && npm install
.selenium-grid.json in your home directory or a
your project root.
If you use saucelabs, just use following configuration:
$ node_modules/selenium-grid/bin/selenium-grid --recursive tests/functional
To learn more about command line arguments, use
To extend browser capabilities or do anything else before test executions,
simply use the
Runner instance will be made available through
grid variable and config is
//pre.js// You can register on any grid event// executed before grid initializationgrid;// executed before launching any test on desired browsergrid;// executed before every scenariogrid;grid;grid;grid;// or do anything else you want, such as initialize your own reporter, launch a// server...
This project is released under MIT license.
Refer to the LICENCE file for more informations.
Some doc is available in the repository.