Nightwatch.js
Guide
API
Community
Blog
2.6.19
Latest 2.6.19
Version 1.7
Version 0.9
All Versions
Menu
Overview
What is Nightwatch?
What’s new in v2?
Release notes
Get started
Install Nightwatch
Using Selenium server
Using cloud providers
Concepts
Test environments
Test globals
Session capabilities
Parallel testing
Page object model
Write tests
BDD test syntax
Exports test syntax
ES6 async/await
Finding DOM elements
Assertions
Xpath selectors
Complex user actions
Test hooks
Test globals
Global hooks
Accessibility testing
Visual regression testing
API testing
Unit & integration testing
Run tests
CLI test runner
Mocha integration
Skip / disable tests
Running in parallel
Filter by test tags
Test groups
Programmatic API
CucumberJS integration
Chrome Devtools Recorder
Component testing
Introduction
Using the Vite plugin
Test React components
Write JSX React tests
Storybook integration
Debug component tests
Mobile App Testing
Introduction
Installation
Write Tests
Using Selectors
Using Commands
Using Assertions
Run Tests
Debug Tests
Configuration
Nightwatch config file
Define test environments
Use ENV variables
Take screenshots on test failure
Test output
Advanced test source filtering
WebDriver settings
Selenium settings
Configure BrowserStack settings
Configure AWS Device Farm
How-to guides
Page Objects
Getting started
Define elements
Define sections
Add page-specific commands
Debug tests
Overview
Use .pause()
Use .debug()
Capture browser logs
Capture browser exceptions
Take heap snapshot
Run on CI Servers
Jenkins
Github Actions
Bamboo
Azure Pipelines
CircleCI
Gitlab CI
Network requests
Capture network calls
Mock network response
Mock geolocation
Reporters
JUnit XML reporter
HTML reporter
JSON reporter
Mochawesome reporter
Slack reporter
Allure reporter
Teamcity reporter
Add custom reporter
Test on mobile
Use Nightwatch with Appium
Override device dimensions
Extend Nightwatch
Define custom commands
Define custom assertions
Create custom reporters
Plugins
Reference
Browser Drivers
GeckoDriver (Firefox)
ChromeDriver
SafariDriver
EdgeDriver
Nightwatch CLI
Command-line Options
Config settings
All settings
Default settings
Resources
Contribute guide
Style guide
Migrating to Nightwatch 2
From Nightwatch v1
From Protractor