setViewportSize

This command changes the viewport size of the browser. When talking about browser size we have to differentiate between the actual window size of the browser application and the document/viewport size of the website. The window size will always be bigger since it includes the height of any menu or status bars.

Usage

1
client.setViewportSize(size,type).then(callback);

Parameters

Param Type Details
size Object window width/height
type Boolean set to false to change window size, true (default) to change viewport size

Uses