viewport_size property

Class: ConfigurationPlatform: Selenium 3Language: Python SDK:

Use this property to set and retrieve the viewport size to be used by the browser for the test.

Syntax

config.viewport_size  = configval
configval = config.viewport_size

Type:RectangleSize

An object that defines the width and height of the test browser viewport in pixels.