The information in this topic may be out of date. The current SDK reference guide has moved here.

viewportSize property

Class: ConfigurationPlainPlatform: PuppeteerLanguage: JavaScript SDK:

Use this property to set and retrieve the viewport size to be used by the browser for the test.


config = { viewportSize: value_RectangleSizePlain };


An object that defines the width and height of the test browser viewport in pixels.