puppeteer/new-docs/puppeteer.protocol.emulation.setdevicemetricsoverriderequest.md
2020-07-13 14:01:35 +01:00

3.1 KiB

Home > puppeteer > Protocol > Emulation > SetDeviceMetricsOverrideRequest

Protocol.Emulation.SetDeviceMetricsOverrideRequest interface

Signature:

export interface SetDeviceMetricsOverrideRequest 

Properties

Property Type Description
deviceScaleFactor number Overriding device scale factor value. 0 disables the override.
dontSetVisibleSize boolean Do not set visible view size, rely upon explicit setVisibleSize call.
height integer Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override.
mobile boolean Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more.
positionX integer Overriding view X position on screen in pixels (minimum 0, maximum 10000000).
positionY integer Overriding view Y position on screen in pixels (minimum 0, maximum 10000000).
scale number Scale to apply to resulting view image.
screenHeight integer Overriding screen height value in pixels (minimum 0, maximum 10000000).
screenOrientation ScreenOrientation Screen orientation override.
screenWidth integer Overriding screen width value in pixels (minimum 0, maximum 10000000).
viewport Page.Viewport If set, the visible area of the page will be overridden to this viewport. This viewport change is not observed by the page, e.g. viewport-relative elements do not change positions.
width integer Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override.