setExplicitViewportSize method

Class: EyesPlatform: WebdriverIO 5Language: JavaScript SDK:

Use this method to set the viewport size to be used to select the appropriate baseline. Calling this method does not change the actual browser viewport size.

Syntax


eyes.setExplicitViewportSize(explicitViewportSize);

Parameters

explicitViewportSize
Type:<a class ='link' href='/Content/api/eyes-sdk/index-gen/class-rectanglesize-webdriverio_sdk5-javascript.htm'>RectangleSize</a>
The size of the viewport. A value of null disables the explicit size.

Return value

Type: