-
Notifications
You must be signed in to change notification settings - Fork 93
Grid Support
In addition to the core Selenium-WebDriver API, the Selenium project offers the Selenium Grid, which facilitates distributed execution of tests across multiple machines.
If you are not familiar with setting up a Grid hub and nodes, I suggest you first read the appropriate wiki page on the Selenium-WebDriver Google site. In short, you (1) download the appropriate standalone jar, use it to (2) start up a hub and (3) start up child nodes, and then (4) run your tests.
In order to make your Driver instances use the Grid for execution instead of your local resources, you need to leverage one of the two functions in the clj-webdriver.grid
namespace:
-
new-driver-on-grid
- Start a new WebDriver on the Grid (defaults to blank page) -
start-on-grid
- Start a new WebDriver on the Grid and go to a URL
NOTE: These functions have not yet been updated with the latest caching functionality and Driver record architecture. These updates will be performed prior to a 0.4.0 release.
These functions are the Grid-based counterparts to the new-driver
and start
functions in the core namespace.
The clj-webdriver Uncyclo by Daniel Gregoire and community is licensed under a Creative Commons Attribution 4.0 International License. Based on a work at https://github.com/semperos/clj-webdriver/wiki.