Sets the current window size in CSS pixels.

Parameters

Name Type description
width number

The new window width in CSS pixels

height number

The new window height in CSS pixels

callback
Optional
function

Optional callback function to be called when the command finishes.

Usage

 this.demoTest = function (browser) {
   browser.setWindowSize(400, 600);
 };

See also