Autonomous WebDriver
A way to write selenium/WebDriverJS tests without having to worry about starting a server, it runs against phantomjs by default.
Next feature: being able to run against an existing server with other browsers than phantomjs by setting environment parameters rather than touching the code.
Usage
Add autonomous-webdriver
to your development dependencies with npm install --save-dev autonomous-webdriver
.
In your tests, start and stop the server:
// get the modulevar aw = ; // store WebDriverJsvar webdriver = awwebdriver; // create a new server and start itvar server = aw;return serverstart;
Using Mocha 1.18.0+, one can use before
/after
and leverage promises:
var aw = ;var server = aw;var webdriver = awwebdriver; ;; ;
Build
Initial setup is done using npm install
and builds are launched with npm test
License
MIT