set_viewport_size method

Class: ConfigurationPlatform: ImagesLanguage: Python SDK:

Set the viewport size to be used by the browser for the test.

Syntax


configval = config.set_viewport_size(viewport_size)

Parameters

viewport_size
Type:ViewPort
An object that defines the width and height of the test browser viewport in pixels.
ViewPort
The type ViewPort is defined as: Union[Dict[Text,int],<a class ='link' href='/Content/api/eyes-sdk/index-gen/class-rectanglesize-images-python_sdk4.htm'>RectangleSize</a>]

Return value

Type: Self
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.