UI automated testing framework powered by Node.js. It uses the Selenium WebDriver API.
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-3.x.x.jar from the Selenium releases page:
https://selenium-release.storage.googleapis.com/index.html
Originally nightwatch isn't able to load typescript files - This is what this fork fixes (A PR from another contributor trying to solve this, was ignored by the nightwatch team)
Create a pull request from nightwatchjs/nightwatch/releasev0.9 branch against hubject/nightwatch/master.
⚠️ This fork is based on 0.9 version of nightwatch, which is still the latest stable version of nightwatch(2018-11-13). Since version 1.0 of nightwatch won't be backwards compatible regarding its code base (1.0 is a complete rewrite), we should skip back to 1.0 at least when 1.0 supports typescript.
Install Node.js and then:
$ git clone https://github.com/nightwatchjs/nightwatch.git
$ cd nightwatch
$ npm installThe tests for Nightwatch are written using Mocha exports interface so they can also be run with Nightwatch itself.
To run the unit tests using mocha, do:
$ npm testTo run the unit tests using Nightwatch, do:
$ npm run unit-testsTo check test coverage, run the command:
$ npm run mocha-coverageand then open the generate file coverage.html in your browser.
The Mailing List/Google Group is the most appropriate tool for Nightwatch related discussions. In addition, there is a StackOverflow Nightwatch.js tag at your disposal and Twitter.
Specific WebDriver setup guides can be found on the Docs website. Legacy Selenium drivers setup guides along with debugging instructions can be found on the Wiki.
