setViewportSize method

Class: ConfigurationPlatform: Selenium 3Language: Java SDK:

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


IConfigurationSetter configval = config.setViewportSize(viewportSize);


Type:<a class ='link' href='/Content/api/eyes-sdk/index-gen/class-rectanglesize-selenium-java.htm'>RectangleSize</a>
An object that defines the width and height of the test browser viewport in pixels.

Return value

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