Nightwatch.js is an integrated, easy to use End-to-End testing solution for web applications and websites, written in Node.js. It uses the W3C WebDriver API to drive browsers in order to perform commands and assertions on DOM elements.
- Clean Syntax
- Built in Test Runner
- Supports Continuous Integration
- Very Quick Setup
- Built-in Test Case Reporting
- Run Unit Tests, API tests and Mobile
- Inbuilt Page Object Model
- Run all or specific tests using Tags.
- Clone the project
npm i
- Install all the dependencies- Run
npm test tests/test-name.js
ORnpx nightwatch tests/test-name.js
to execute the tests
- How to Install Nightwatch JS
- Writing your first test with Nightwatch JS
- How to execute Tests Parallelly in multiple browsers with Nightwatch JS
- How to prevent Tests from skipping if one test fails in Nightwatch JS
- Different ways to take screenshots with Nightwatch JS
- How to create HTML Reports in Nightwatch JS
- Page Object Model in Nightwatch JS
- How to handle simple and nested iFrames in Nightwatch JS
- How to handle Shadow DOM in Nightwatch JS
- API Testing in Nightwatch JS
- How to upload and download a file in Nightwatch JS
- How to add tags to Nightwatch JS Tests
- How to handle multiple browser windows in Nightwatch JS
- How to loop or iterate over multiple elements in Nightwatch JS
- Keyboard and Mouse Events in Nightwatch JS