Nightwatch.js
Guide
API
Community
Blog
2.4.0
Latest 2.4.0
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
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
Use CucumberJS
Use Mocha as a test runner
Write component tests (React)
Write unit & integration tests
Write accessibility tests
Chrome Devtools Recorder
Run tests
CLI test runner
Skip / disable tests
Run tests in parallel
Filter by test tags
Use test groups
Programmatic API
Configure
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
Concepts
Component testing
Test environments
Test globals
Session capabilities
Parallel testing
Page object model
Extend Nightwatch
Define custom commands
Define custom assertions
Create custom reporters
Create Nightwatch plugins
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
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