getViewportSize method

Class: EyesPlatform: Selenium 3Language: JavaScript 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


let result = await eyes.getViewportSize();


This method does not take any parameters.

Return value

Type: Promise<{width: number, height: number}>