Nightwatch JS Tutorial

Nightwatch JS Tutorial

Nightwatch.js is an automated end-to-end testing framework for web applications and websites. It is written in Node.js and uses the W3C WebDriver API (formerly Selenium WebDriver) for interacting with various browsers. It is a complete testing solution that aims to simplify writing tests. Nightwatch can also be used for writing Node.js unit and integration tests. Some of its features are:

  • Quick Setup
  • Built-in Test Runner
  • Clean Syntax
  • Supports both CSS & XPath
  • Supports Continuous Integration
  • Built-in Test Case Reporting
  • Inbuilt Page Object Model
  • Run all or specific tests using Tags.
  • Supports cloud services like Saucelabs, Browserstack, etc.
  • Extendible command and assertion library

I came to know about Nightwatch JS some years back and I have been using it on and off since then, both for work and for my personal projects. My favorite feature of Nightwatch JS are custom commands and inbuilt support for page object model. This makes life so much easier when you are writing New tests.

Listed below are a few blogs that I have written explaining the different features and capabilities of Nightwatch. Every blog includes a working example (a test script automating a scenario) with a detailed explanation. Do check it out. Also, don’t forget to check out the Github repo if you want to skip to the good part 🙂

About The Author

Alapan

A QA by profession and a Coder by passion. Fan of Open-Source projects, Automation, Steve Jobs & Tom Hanks. Brains and Sweat behind Testersdock.

Pin It on Pinterest