setViewportSize method
Set the viewport size to be used by the browser for the test.
Syntax
Configuration configval = config.setViewportSize(viewportSize);
Parameters
- viewportSize
- Type:RectangleSize
- An object that defines the width and height of the test browser viewport in pixels.
Return value
- Type: Configuration
-
The value returned is the object that called the method.
This allows you to use a fluent style to call the
setXXXX
methods of the Configuration class.