Sets the current window size in CSS pixels.

Usage

Example

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

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.

See also