🎉 Introducing
Component Testing
in Nightwatch for
React
and
Vue
apps.
Read More
×
Home
Developer Guide
API Reference
Community
Blog
2.3.0
Latest (2.3.0)
v1.7
v0.9
All versions
Menu
Overview
What is Nightwatch?
What is WebDriver?
What’s new in v2?
Quickstarts
Create and run your first Nightwatch test
Run a test with Selenium Server
Create and run a test with a cloud provider
Concepts
Test environments
Test globals
Session capabilities
Parallel testing in Nightwatch
Page Object Model
Component testing
How-to guides
Configure
Nightwatch configuration 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
Write tests
BDD test syntax
Exports test syntax
Use ES6 async/await
Find & interact with DOM elements
Add assertions
Use Xpath selectors
Write complex user actions
Use CucumberJS
Use Mocha as a test runner
Use test hooks
Use test globals
Use global hooks
Write component tests (React)
Write unit & integration tests
Run tests
Use the CLI test runner
Skip / disable tests
Run tests in parallel
Filter by test tags
Use test groups
Use the programmatic API
Capture browser logs
Capture browser exceptions
Take heap snapshot
Debug tests
Overview
Use .pause()
Use .debug()
Run on CI Servers
Jenkins
Network requests
Capture network calls
Mock network response
Mock geolocation
Use reporters
JUnit XML reporter
HTML reporter
Mochawesome reporter
Add custom reporter
Page objects
Define elements
Define sections
Add page-specific commands
Test on mobile
Use Nightwatch with Appium
Override device dimensions
Extend Nightwatch
Define custom commands
Define custom assertions
Create custom reporters
Create Nightwatch plugins
Reference
Browser Drivers
GeckoDriver (Firefox)
ChromeDriver
SafariDriver
EdgeDriver
Nightwatch CLI
Command-line Options
Configuration
All settings
Default settings
Resources
Contribute guide
Style guide
Migrating to Nightwatch 2
From Nightwatch v1
From Protractor