Capture outgoing network calls from the browser.

Usage

.captureNetworkRequests(onRequestCallback)

Example

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

Parameters

Name Type description
onRequestCallback function

Callback function called whenever a new outgoing network request is made.

Recommended content