Expand description
This domain emulates different environments for the page.
Structs§
- Clear
Device Metrics Override Params - Clears the overridden device metrics. clearDeviceMetricsOverride
- Clear
Device Metrics Override Returns - Clears the overridden device metrics. clearDeviceMetricsOverride
- Clear
Device Posture Override Params - Clears a device posture override set with either setDeviceMetricsOverride() or setDevicePostureOverride() and starts using posture information from the platform again. Does nothing if no override is set. clearDevicePostureOverride
- Clear
Device Posture Override Returns - Clears a device posture override set with either setDeviceMetricsOverride() or setDevicePostureOverride() and starts using posture information from the platform again. Does nothing if no override is set. clearDevicePostureOverride
- Clear
Geolocation Override Params - Clears the overridden Geolocation Position and Error. clearGeolocationOverride
- Clear
Geolocation Override Returns - Clears the overridden Geolocation Position and Error. clearGeolocationOverride
- Clear
Idle Override Params - Clears Idle state overrides. clearIdleOverride
- Clear
Idle Override Returns - Clears Idle state overrides. clearIdleOverride
- Device
Posture - Device
Posture Builder - Display
Feature - Display
Feature Builder - Event
Virtual Time Budget Expired - Notification sent after the virtual time budget for the current VirtualTimePolicy has run out. virtualTimeBudgetExpired
- GetOverridden
Sensor Information Params - GetOverridden
Sensor Information Params Builder - GetOverridden
Sensor Information Returns - GetOverridden
Sensor Information Returns Builder - Media
Feature - Media
Feature Builder - Pressure
Metadata - Pressure
Metadata Builder - Reset
Page Scale Factor Params - Requests that page scale factor is reset to initial values. resetPageScaleFactor
- Reset
Page Scale Factor Returns - Requests that page scale factor is reset to initial values. resetPageScaleFactor
- Screen
Orientation - Screen orientation. ScreenOrientation
- Screen
Orientation Builder - Sensor
Metadata - Sensor
Metadata Builder - Sensor
Reading - Sensor
Reading Builder - Sensor
Reading Quaternion - Sensor
Reading Quaternion Builder - Sensor
Reading Single - Sensor
Reading Single Builder - Sensor
Reading Xyz - Sensor
Reading XyzBuilder - SetAuto
Dark Mode Override Params - Automatically render all web contents using a dark theme. setAutoDarkModeOverride
- SetAuto
Dark Mode Override Params Builder - SetAuto
Dark Mode Override Returns - Automatically render all web contents using a dark theme. setAutoDarkModeOverride
- SetAutomation
Override Params - Allows overriding the automation flag. setAutomationOverride
- SetAutomation
Override Params Builder - SetAutomation
Override Returns - Allows overriding the automation flag. setAutomationOverride
- SetCpu
Throttling Rate Params - Enables CPU throttling to emulate slow CPUs. setCPUThrottlingRate
- SetCpu
Throttling Rate Params Builder - SetCpu
Throttling Rate Returns - Enables CPU throttling to emulate slow CPUs. setCPUThrottlingRate
- SetDefault
Background Color Override Params - Sets or clears an override of the default background color of the frame. This override is used if the content does not specify one. setDefaultBackgroundColorOverride
- SetDefault
Background Color Override Params Builder - SetDefault
Background Color Override Returns - Sets or clears an override of the default background color of the frame. This override is used if the content does not specify one. setDefaultBackgroundColorOverride
- SetDevice
Metrics Override Params - Overrides the values of device screen dimensions (window.screen.width, window.screen.height, window.innerWidth, window.innerHeight, and “device-width”/“device-height”-related CSS media query results). setDeviceMetricsOverride
- SetDevice
Metrics Override Params Builder - SetDevice
Metrics Override Returns - Overrides the values of device screen dimensions (window.screen.width, window.screen.height, window.innerWidth, window.innerHeight, and “device-width”/“device-height”-related CSS media query results). setDeviceMetricsOverride
- SetDevice
Posture Override Params - Start reporting the given posture value to the Device Posture API. This override can also be set in setDeviceMetricsOverride(). setDevicePostureOverride
- SetDevice
Posture Override Params Builder - SetDevice
Posture Override Returns - Start reporting the given posture value to the Device Posture API. This override can also be set in setDeviceMetricsOverride(). setDevicePostureOverride
- SetDisabled
Image Types Params - SetDisabled
Image Types Params Builder - SetDisabled
Image Types Returns - SetDocument
Cookie Disabled Params - SetDocument
Cookie Disabled Params Builder - SetDocument
Cookie Disabled Returns - SetEmit
Touch Events ForMouse Params - SetEmit
Touch Events ForMouse Params Builder - SetEmit
Touch Events ForMouse Returns - SetEmulated
Media Params - Emulates the given media type or media feature for CSS media queries. setEmulatedMedia
- SetEmulated
Media Params Builder - SetEmulated
Media Returns - Emulates the given media type or media feature for CSS media queries. setEmulatedMedia
- SetEmulated
Vision Deficiency Params - Emulates the given vision deficiency. setEmulatedVisionDeficiency
- SetEmulated
Vision Deficiency Params Builder - SetEmulated
Vision Deficiency Returns - Emulates the given vision deficiency. setEmulatedVisionDeficiency
- SetFocus
Emulation Enabled Params - Enables or disables simulating a focused and active page. setFocusEmulationEnabled
- SetFocus
Emulation Enabled Params Builder - SetFocus
Emulation Enabled Returns - Enables or disables simulating a focused and active page. setFocusEmulationEnabled
- SetGeolocation
Override Params - Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable. setGeolocationOverride
- SetGeolocation
Override Params Builder - SetGeolocation
Override Returns - Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable. setGeolocationOverride
- SetHardware
Concurrency Override Params - SetHardware
Concurrency Override Params Builder - SetHardware
Concurrency Override Returns - SetIdle
Override Params - Overrides the Idle state. setIdleOverride
- SetIdle
Override Params Builder - SetIdle
Override Returns - Overrides the Idle state. setIdleOverride
- SetLocale
Override Params - Overrides default host system locale with the specified one. setLocaleOverride
- SetLocale
Override Params Builder - SetLocale
Override Returns - Overrides default host system locale with the specified one. setLocaleOverride
- SetPage
Scale Factor Params - Sets a specified page scale factor. setPageScaleFactor
- SetPage
Scale Factor Params Builder - SetPage
Scale Factor Returns - Sets a specified page scale factor. setPageScaleFactor
- SetPressure
Source Override Enabled Params - Overrides a pressure source of a given type, as used by the Compute Pressure API, so that updates to PressureObserver.observe() are provided via setPressureStateOverride instead of being retrieved from platform-provided telemetry data. setPressureSourceOverrideEnabled
- SetPressure
Source Override Enabled Params Builder - SetPressure
Source Override Enabled Returns - Overrides a pressure source of a given type, as used by the Compute Pressure API, so that updates to PressureObserver.observe() are provided via setPressureStateOverride instead of being retrieved from platform-provided telemetry data. setPressureSourceOverrideEnabled
- SetPressure
State Override Params - Provides a given pressure state that will be processed and eventually be delivered to PressureObserver users. |source| must have been previously overridden by setPressureSourceOverrideEnabled. setPressureStateOverride
- SetPressure
State Override Params Builder - SetPressure
State Override Returns - Provides a given pressure state that will be processed and eventually be delivered to PressureObserver users. |source| must have been previously overridden by setPressureSourceOverrideEnabled. setPressureStateOverride
- SetScript
Execution Disabled Params - Switches script execution in the page. setScriptExecutionDisabled
- SetScript
Execution Disabled Params Builder - SetScript
Execution Disabled Returns - Switches script execution in the page. setScriptExecutionDisabled
- SetScrollbars
Hidden Params - SetScrollbars
Hidden Params Builder - SetScrollbars
Hidden Returns - SetSensor
Override Enabled Params - Overrides a platform sensor of a given type. If |enabled| is true, calls to Sensor.start() will use a virtual sensor as backend rather than fetching data from a real hardware sensor. Otherwise, existing virtual sensor-backend Sensor objects will fire an error event and new calls to Sensor.start() will attempt to use a real sensor instead. setSensorOverrideEnabled
- SetSensor
Override Enabled Params Builder - SetSensor
Override Enabled Returns - Overrides a platform sensor of a given type. If |enabled| is true, calls to Sensor.start() will use a virtual sensor as backend rather than fetching data from a real hardware sensor. Otherwise, existing virtual sensor-backend Sensor objects will fire an error event and new calls to Sensor.start() will attempt to use a real sensor instead. setSensorOverrideEnabled
- SetSensor
Override Readings Params - Updates the sensor readings reported by a sensor type previously overridden by setSensorOverrideEnabled. setSensorOverrideReadings
- SetSensor
Override Readings Params Builder - SetSensor
Override Readings Returns - Updates the sensor readings reported by a sensor type previously overridden by setSensorOverrideEnabled. setSensorOverrideReadings
- SetTimezone
Override Params - Overrides default host system timezone with the specified one. setTimezoneOverride
- SetTimezone
Override Params Builder - SetTimezone
Override Returns - Overrides default host system timezone with the specified one. setTimezoneOverride
- SetTouch
Emulation Enabled Params - Enables touch on platforms which do not support them. setTouchEmulationEnabled
- SetTouch
Emulation Enabled Params Builder - SetTouch
Emulation Enabled Returns - Enables touch on platforms which do not support them. setTouchEmulationEnabled
- SetUser
Agent Override Params - Allows overriding user agent with the given string.
userAgentMetadata
must be set for Client Hint headers to be sent. setUserAgentOverride - SetUser
Agent Override Params Builder - SetUser
Agent Override Returns - Allows overriding user agent with the given string.
userAgentMetadata
must be set for Client Hint headers to be sent. setUserAgentOverride - SetVirtual
Time Policy Params - Turns on virtual time for all frames (replacing real-time with a synthetic time source) and sets the current virtual time policy. Note this supersedes any previous time budget. setVirtualTimePolicy
- SetVirtual
Time Policy Params Builder - SetVirtual
Time Policy Returns - Turns on virtual time for all frames (replacing real-time with a synthetic time source) and sets the current virtual time policy. Note this supersedes any previous time budget. setVirtualTimePolicy
- SetVirtual
Time Policy Returns Builder - User
Agent Brand Version - Used to specify User Agent Client Hints to emulate. See https://wicg.github.io/ua-client-hints UserAgentBrandVersion
- User
Agent Brand Version Builder - User
Agent Metadata - Used to specify User Agent Client Hints to emulate. See https://wicg.github.io/ua-client-hints Missing optional values will be filled in by the target with what it would normally use. UserAgentMetadata
- User
Agent Metadata Builder
Enums§
- Device
Posture Type - Current posture of the device
- Disabled
Image Type - Enum of image types that can be disabled.
- Display
Feature Orientation - Orientation of a display feature in relation to screen
- Pressure
Source - Pressure
State - Screen
Orientation Type - Orientation type.
- Sensor
Type - Used to specify sensor types to emulate. See https://w3c.github.io/sensors/#automation for more information.
- SetEmit
Touch Events ForMouse Configuration - Touch/gesture events configuration. Default: current platform.
- SetEmulated
Vision Deficiency Type - Vision deficiency to emulate. Order: best-effort emulations come first, followed by any physiologically accurate emulations for medically recognized color vision deficiencies.
- Virtual
Time Policy - 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.