addBrowser method

Class: ConfigurationPlatform: WebdriverIO 5Language: JavaScript SDK:

Request that the Ultrafast Grid generate checkpoint images using a particular desktop browser and viewport size.

Syntax


let configval = config.addBrowser(width, height, browserType);

Parameters

width
Type:number
The width of the browser viewport for this target. The maximum viewport width for all browsers is 5120. If this limit is exceeded, then execution of the checkpoint will fail.
height
Type:number
The height of the browser viewport for this target. There is no height limit.
browserType
Type:BrowserType
The type of browser for this target.

Return value

Type: Configuration
The value returned is the object that called the method. This allows you to use a fluent style to call the setXXXX methods of this class.

Remarks

By default, the entire page is rendered. The viewport width and height parameters impact the baseline that is chosen, unless the baseline environment configuration has been provided. The viewport passed to the Eyes.open method does not impact the baseline used, but could impact the page layout if the page has any viewport size-sensitive factors such as HTML, CSS or Javascript.