puppeteer/new-docs/puppeteer.protocol.emulation.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

4.2 KiB

Home > puppeteer > Protocol > Emulation

Protocol.Emulation namespace

This domain emulates different environments for the page.

Signature:

export namespace Emulation 

Enumerations

Enumeration Description
DisplayFeatureOrientation
ScreenOrientationType
SetEmitTouchEventsForMouseRequestConfiguration
SetEmulatedVisionDeficiencyRequestType

Interfaces

Interface Description
CanEmulateResponse
DisplayFeature
MediaFeature
ScreenOrientation Screen orientation.
SetCPUThrottlingRateRequest
SetDefaultBackgroundColorOverrideRequest
SetDeviceMetricsOverrideRequest
SetDocumentCookieDisabledRequest
SetEmitTouchEventsForMouseRequest
SetEmulatedMediaRequest
SetEmulatedVisionDeficiencyRequest
SetFocusEmulationEnabledRequest
SetGeolocationOverrideRequest
SetIdleOverrideRequest
SetLocaleOverrideRequest
SetNavigatorOverridesRequest
SetPageScaleFactorRequest
SetScriptExecutionDisabledRequest
SetScrollbarsHiddenRequest
SetTimezoneOverrideRequest
SetTouchEmulationEnabledRequest
SetUserAgentOverrideRequest
SetVirtualTimePolicyRequest
SetVirtualTimePolicyResponse
SetVisibleSizeRequest
UserAgentBrandVersion Used to specify User Agent Cient Hints to emulate. See https://wicg.github.io/ua-client-hints
UserAgentMetadata Used to specify User Agent Cient Hints to emulate. See https://wicg.github.io/ua-client-hints

Type Aliases

Type Alias Description
VirtualTimePolicy advance: If the scheduler runs out of immediate work, the virtual time base may fast forward to allow the next delayed task (if any) to run; pause: The virtual time base may not advance; pauseIfNetworkFetchesPending: The virtual time base may not advance if there are any pending resource fetches.