Skip to content

Latest commit

 

History

History
50 lines (40 loc) · 3.55 KB

puppeteer.protocol.emulation.md

File metadata and controls

50 lines (40 loc) · 3.55 KB

Home > puppeteer > Protocol > Emulation

Protocol.Emulation namespace

This domain emulates different environments for the page.

Signature:

export namespace Emulation 

Interfaces

Interface Description
CanEmulateResponse
MediaFeature
ScreenOrientation Screen orientation.
SetCPUThrottlingRateRequest
SetDefaultBackgroundColorOverrideRequest
SetDeviceMetricsOverrideRequest
SetDocumentCookieDisabledRequest
SetEmitTouchEventsForMouseRequest
SetEmulatedMediaRequest
SetEmulatedVisionDeficiencyRequest
SetFocusEmulationEnabledRequest
SetGeolocationOverrideRequest
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.