getViewportSize method

Class: ConfigurationPlatform: Selenium 4Language: JavaScript SDK:

Returns the value configured by setViewportSize.

Syntax

let configval = config.getViewportSize();
config.viewportSize = configval;
configval = config.viewportSize;

Note that this feature is available as both a method and a property.

Parameters

This method does not take any parameters.

Return value

Type: RectangleSize