Nightwatch logo of an owl
Guide
API
About
Blog
Search
GitHub
Discord
3.9.0
Previous 2.6.19
Version 1.7
Version 0.9
All versions
Guide
API
About
Blog
Github
Discord
Release Notes
(Current version 3.9.0)
Guide pages
Overview
What is Nightwatch?
What's new in v3?
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
Introduction
Commands
Selectors
Assertions
BDD test syntax
Exports test syntax
ES6 async/await
Finding DOM elements
Xpath selectors
Complex user actions
Using test hooks
Test globals
Global hooks
Accessibility testing
Visual regression testing
API testing
Unit & integration testing
Test Doubles
Nightwatch Inspector
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
Using Angular
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
DOM history
Test Browser Extension
Chrome Extension Testing
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
Comparison With Leading Frameworks
Contribute guide
Style guide
Migrating to Nightwatch 2
From Nightwatch v1
From Protractor
VueJS Component Testing
Recommended content
Blog > Introducing Component Testing in Nightwatch
←
Back
Page Object Model
Next Page
Nightwatch configuration file
→
On this page
Recommended content
Contribute
Edit this page
Community
Join us on Discord
Read our blog
Nightwatch Docs on Github