Sets the current window size in CSS pixels.

Usage

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.

Example

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

See also