setExplicitViewportSize method

Class: EyesPlatform: Selenium 4Language: 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:RectangleSize
The size of the viewport. A value of null disables the explicit size.

Return value

Type: