Sets the current window position.

Parameters

Name Type description
offsetX number

The new window offset x-position.

offsetY number

The new window offset y-position.

callback
Optional
function

Optional callback function to be called when the command finishes.

Usage

 this.demoTest = function (browser) {
   browser.setWindowPosition(0, 0);
 };

See also