getViewportSize method

Class: EyesPlatform: Selenium 3Language: Java SDK:

Use this method to retrieve The value that was set for the viewport.

If the viewport is not set explicitly using e.g. using Eyes.setViewportSize, then this method may only be called after a call to Eyes.open

Syntax


RectangleSize value = eyes.getViewportSize();

RectangleSize value = eyes.getViewportSize(driver);

Parameters

driver
Type:WebDriver
The driver returned from the call to open.

Return value

Type: RectangleSize