puppeteer/new-docs/puppeteer.protocol.emulation.setdevicemetricsoverriderequest.md
Maksim Sadym 62ac167339
feat(chromium): roll Chromium to r800071 (#6407)
* roll Chromium to version 86, r800071
* roll Chrome DevTools protocol version to 0.0.799653
* fix HTTPRequest.continue after
  * CDP: accept post data in the binary form in Fetch.continueRequest.
    https://chromium-review.googlesource.com/c/chromium/src/+/2315239
* update new-docs
2020-09-09 21:23:46 +02:00

3.4 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.
displayFeature DisplayFeature If set, the display feature of a multi-segment screen. If not set, multi-segment support is turned-off.
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.