SetViewportSize method
Set the viewport size to be used by the browser for the test.
Syntax
IConfiguration configval = config.SetViewportSize(width, height);
IConfiguration configval = config.SetViewportSize(value);
config.ViewportSize = configval;
= config.ViewportSize;
Note that this feature is available as both a method and a property.
Parameters
- width
- Type:int
- The width of the test browser viewport in pixels.
- height
- Type:int
- The height of the test browser viewport in pixels.
- value
- Type:RectangleSize
- An object that defines the width and height of the test browser viewport in pixels.
Return value
- Type: IConfiguration
-
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.