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

3.6 KiB

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.