get_viewport_size method
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.set_viewport_size, then this method may only be called after a call to Eyes.open
Syntax
value = eyes.get_viewport_size(driver)
Parameters
- driver
- Type:AnyWebDriver
- The driver returned from the call to open.
- AnyWebDriver
- The type AnyWebDriver is defined as: Union[EyesWebDriver,WebDriver] This object can be used in the same way as the Selenium driver object.
Return value
- Type: ViewPort
-
- ViewPort
- The type ViewPort is defined as: Union[Dict[Text,int],RectangleSize]