Available on crate features
Emulation and DOM and Page and Runtime only.Expand description
This domain emulates different environments for the page.
Structs§
- CanEmulate
Command - Tells whether emulation is supported.
- CanEmulate
Return - Tells whether emulation is supported.
- Clear
Device Metrics Override Command - Clears the overriden device metrics.
- Clear
Device Metrics Override Return - Clears the overriden device metrics.
- Clear
Geolocation Override Command - Clears the overriden Geolocation Position and Error.
- Clear
Geolocation Override Return - Clears the overriden Geolocation Position and Error.
- Clear
Idle Override Command experimental - Clears Idle state overrides.
- Clear
Idle Override Return experimental - Clears Idle state overrides.
- Display
Feature - Media
Feature - Reset
Page Scale Factor Command experimental - Requests that page scale factor is reset to initial values.
- Reset
Page Scale Factor Return experimental - Requests that page scale factor is reset to initial values.
- Screen
Orientation - Screen orientation.
- SetCpu
Throttling Rate Command experimental - Enables CPU throttling to emulate slow CPUs.
- SetCpu
Throttling Rate Return experimental - Enables CPU throttling to emulate slow CPUs.
- SetDefault
Background Color Override Command - Sets or clears an override of the default background color of the frame. This override is used if the content does not specify one.
- SetDefault
Background Color Override Return - Sets or clears an override of the default background color of the frame. This override is used if the content does not specify one.
- SetDevice
Metrics Override Command - 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).
- SetDevice
Metrics Override Command Builder - SetDevice
Metrics Override Return - 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).
- SetDisabled
Image Types Command experimental - SetDisabled
Image Types Return experimental - SetDocument
Cookie Disabled Command experimental - SetDocument
Cookie Disabled Return experimental - SetEmit
Touch Events ForMouse Command experimental - SetEmit
Touch Events ForMouse Return experimental - SetEmulated
Media Command - Emulates the given media type or media feature for CSS media queries.
- SetEmulated
Media Return - Emulates the given media type or media feature for CSS media queries.
- SetEmulated
Vision Deficiency Command experimental - Emulates the given vision deficiency.
- SetEmulated
Vision Deficiency Return experimental - Emulates the given vision deficiency.
- SetFocus
Emulation Enabled Command experimental - Enables or disables simulating a focused and active page.
- SetFocus
Emulation Enabled Return experimental - Enables or disables simulating a focused and active page.
- SetGeolocation
Override Command - Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable.
- SetGeolocation
Override Return - Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable.
- SetIdle
Override Command experimental - Overrides the Idle state.
- SetIdle
Override Return experimental - Overrides the Idle state.
- SetLocale
Override Command experimental - Overrides default host system locale with the specified one.
- SetLocale
Override Return experimental - Overrides default host system locale with the specified one.
- SetNavigator
Overrides Command Deprecated experimental - Overrides value returned by the javascript navigator object.
- SetNavigator
Overrides Return Deprecated experimental - Overrides value returned by the javascript navigator object.
- SetPage
Scale Factor Command experimental - Sets a specified page scale factor.
- SetPage
Scale Factor Return experimental - Sets a specified page scale factor.
- SetScript
Execution Disabled Command - Switches script execution in the page.
- SetScript
Execution Disabled Return - Switches script execution in the page.
- SetScrollbars
Hidden Command experimental - SetScrollbars
Hidden Return experimental - SetTimezone
Override Command experimental - Overrides default host system timezone with the specified one.
- SetTimezone
Override Return experimental - Overrides default host system timezone with the specified one.
- SetTouch
Emulation Enabled Command - Enables touch on platforms which do not support them.
- SetTouch
Emulation Enabled Return - Enables touch on platforms which do not support them.
- SetUser
Agent Override Command - Allows overriding user agent with the given string.
- SetUser
Agent Override Command Builder - SetUser
Agent Override Return - Allows overriding user agent with the given string.
- SetVirtual
Time Policy Command experimental - 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.
- SetVirtual
Time Policy Command Builder experimental - SetVirtual
Time Policy Return experimental - 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.
- SetVisible
Size Command Deprecated experimental - Resizes the frame/viewport of the page. Note that this does not affect the frame’s container (e.g. browser window). Can be used to produce screenshots of the specified size. Not supported on Android.
- SetVisible
Size Return Deprecated experimental - Resizes the frame/viewport of the page. Note that this does not affect the frame’s container (e.g. browser window). Can be used to produce screenshots of the specified size. Not supported on Android.
- User
Agent Brand Version experimental - Used to specify User Agent Cient Hints to emulate. See https://wicg.github.io/ua-client-hints
- User
Agent Metadata experimental - Used to specify User Agent Cient 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.
- User
Agent Metadata Builder experimental - Virtual
Time Budget Expired Event experimental - Notification sent after the virtual time budget for the current VirtualTimePolicy has run out.