A node.js bindings implementation for selenium 2.0/webdriver
Nightwatch works with the Selenium standalone server so the first thing you need to do is download the selenium server jar file
selenium-server-standalone-2.x.x.jar from the Selenium releases page:
Install Node.js and then:
$ git clone email@example.com:nightwatchjs/nightwatch.git$ cd nightwatch$ npm install
The tests for Nightwatch are written using Mocha exports interface but they can also be run with Nightwatch itself.
To run the unit tests using mocha, do:
$ npm test
To run the unit tests using Nightwatch, do:
$ npm run unit-tests
Browser specific setup and usage guides along with debugging instructions can be found on the Wiki.