For AI agents: a documentation index is available at /llms.txt
Skip to main content

ViewportOptions

Properties​

PropertyTypeDescription
deviceScaleFactor?numberThe device scale factor, defaults to 1 Default 1
hasTouch?booleanWhether the viewport supports touch events, defaults to false Default false
heightnumberThe height of the viewport in pixels
landscape?booleanWhether the viewport is in landscape orientation, defaults to false. Only takes effect on a session with no active device-emulation profile. When a profile is active (for example, a stealth session emulating a specific device), the reported orientation is derived from that device's screen shape instead, and this argument has no effect on it. Default false
mobile?booleanWhether to simulate a mobile device, defaults to false Default false
widthnumberThe width of the viewport in pixels
Was this page helpful?