Retrieve the list of all window handles available to the session.

Usage

Example

Or run locally with:
git clone https://github.com/nightwatchjs/nightwatch-examples.git
cd nightwatch-examples
npm install
npx nightwatch tests/api/windowHandles.js

Parameters

Name Type description
callback function

Callback function which is called with the result value.

W3C WebDriver spec