Change or get the position of the specified window. If the second argument is a function it will be used as a callback and the call will perform a get request to retrieve the existing window position.

Usage

Example

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

Parameters

Name Type description
windowHandle string
offsetX number
offsetY number
callback function

Callback function which is called with the result value.

See also