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.



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


Name Type description
windowHandle string
offsetX number
offsetY number
callback function

Callback function which is called with the result value.

See also