Namespace OpenQA.Selenium.DevTools.V153.Emulation
Classes
- AddScreenCommandResponse
Response for Add a new screen to the device. Only supported in headless mode.
- AddScreenCommandSettings
Add a new screen to the device. Only supported in headless mode.
- CanEmulateCommandResponse
Response for Tells whether emulation is supported.
- CanEmulateCommandSettings
Tells whether emulation is supported.
- ClearDeviceMetricsOverrideCommandResponse
Response for Clears the overridden device metrics.
- ClearDeviceMetricsOverrideCommandSettings
Clears the overridden device metrics.
- ClearDevicePostureOverrideCommandResponse
Response for 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.
- ClearDevicePostureOverrideCommandSettings
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.
- ClearDisplayFeaturesOverrideCommandResponse
Response for Clears the display features override set with either setDeviceMetricsOverride() or setDisplayFeaturesOverride() and starts using display features from the platform again. Does nothing if no override is set.
- ClearDisplayFeaturesOverrideCommandSettings
Clears the display features override set with either setDeviceMetricsOverride() or setDisplayFeaturesOverride() and starts using display features from the platform again. Does nothing if no override is set.
- ClearGeolocationOverrideCommandResponse
Response for Clears the overridden Geolocation Position and Error.
- ClearGeolocationOverrideCommandSettings
Clears the overridden Geolocation Position and Error.
- ClearIdleOverrideCommandResponse
Response for Clears Idle state overrides.
- ClearIdleOverrideCommandSettings
Clears Idle state overrides.
- DevicePosture
DevicePosture
- DisplayFeature
DisplayFeature
- EmulationAdapter
Represents an adapter for the Emulation domain to simplify the command interface.
- GetOverriddenSensorInformationCommandResponse
Response for GetOverriddenSensorInformation
- GetOverriddenSensorInformationCommandSettings
GetOverriddenSensorInformation
- GetScreenInfosCommandResponse
Response for Returns device's screen configuration. In headful mode, the physical screens configuration is returned, whereas in headless mode, a virtual headless screen configuration is provided instead.
- GetScreenInfosCommandSettings
Returns device's screen configuration. In headful mode, the physical screens configuration is returned, whereas in headless mode, a virtual headless screen configuration is provided instead.
- MediaFeature
MediaFeature
- PressureMetadata
PressureMetadata
- RemoveScreenCommandResponse
Response for Remove screen from the device. Only supported in headless mode.
- RemoveScreenCommandSettings
Remove screen from the device. Only supported in headless mode.
- ResetPageScaleFactorCommandResponse
Response for Requests that page scale factor is reset to initial values.
- ResetPageScaleFactorCommandSettings
Requests that page scale factor is reset to initial values.
- SafeAreaInsets
SafeAreaInsets
- ScreenInfo
Screen information similar to the one returned by window.getScreenDetails() method, see https://w3c.github.io/window-management/#screendetailed.
- ScreenOrientation
Screen orientation.
- ScreenOrientationLockChangedEventArgs
Fired when a page calls screen.orientation.lock() or screen.orientation.unlock() while device emulation is enabled. This allows the DevTools frontend to update the emulated device orientation accordingly.
- SensorMetadata
SensorMetadata
- SensorReading
SensorReading
- SensorReadingQuaternion
SensorReadingQuaternion
- SensorReadingSingle
SensorReadingSingle
- SensorReadingXYZ
SensorReadingXYZ
- SetAutoDarkModeOverrideCommandResponse
Response for Automatically render all web contents using a dark theme.
- SetAutoDarkModeOverrideCommandSettings
Automatically render all web contents using a dark theme.
- SetAutomationOverrideCommandResponse
Response for Allows overriding the automation flag.
- SetAutomationOverrideCommandSettings
Allows overriding the automation flag.
- SetCPUPerformanceOverrideCommandResponse
Response for Overrides the value of navigator.cpuPerformance
- SetCPUPerformanceOverrideCommandSettings
Overrides the value of navigator.cpuPerformance
- SetCPUThrottlingRateCommandResponse
Response for Enables CPU throttling to emulate slow CPUs.
- SetCPUThrottlingRateCommandSettings
Enables CPU throttling to emulate slow CPUs.
- SetDataSaverOverrideCommandResponse
Response for Override the value of navigator.connection.saveData
- SetDataSaverOverrideCommandSettings
Override the value of navigator.connection.saveData
- SetDefaultBackgroundColorOverrideCommandResponse
Response for Sets or clears an override of the default background color of the frame. This override is used if the content does not specify one.
- SetDefaultBackgroundColorOverrideCommandSettings
Sets or clears an override of the default background color of the frame. This override is used if the content does not specify one.
- SetDeviceMetricsOverrideCommandResponse
Response for 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).
- SetDeviceMetricsOverrideCommandSettings
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).
- SetDevicePostureOverrideCommandResponse
Response for Start reporting the given posture value to the Device Posture API. This override can also be set in setDeviceMetricsOverride().
- SetDevicePostureOverrideCommandSettings
Start reporting the given posture value to the Device Posture API. This override can also be set in setDeviceMetricsOverride().
- SetDisabledImageTypesCommandResponse
Response for SetDisabledImageTypes
- SetDisabledImageTypesCommandSettings
SetDisabledImageTypes
- SetDisplayFeaturesOverrideCommandResponse
Response for Start using the given display features to pupulate the Viewport Segments API. This override can also be set in setDeviceMetricsOverride().
- SetDisplayFeaturesOverrideCommandSettings
Start using the given display features to pupulate the Viewport Segments API. This override can also be set in setDeviceMetricsOverride().
- SetDocumentCookieDisabledCommandResponse
Response for SetDocumentCookieDisabled
- SetDocumentCookieDisabledCommandSettings
SetDocumentCookieDisabled
- SetEmitTouchEventsForMouseCommandResponse
Response for SetEmitTouchEventsForMouse
- SetEmitTouchEventsForMouseCommandSettings
SetEmitTouchEventsForMouse
- SetEmulatedMediaCommandResponse
Response for Emulates the given media type or media feature for CSS media queries.
- SetEmulatedMediaCommandSettings
Emulates the given media type or media feature for CSS media queries.
- SetEmulatedOSTextScaleCommandResponse
Response for Emulates the given OS text scale.
- SetEmulatedOSTextScaleCommandSettings
Emulates the given OS text scale.
- SetEmulatedVisionDeficiencyCommandResponse
Response for Emulates the given vision deficiency.
- SetEmulatedVisionDeficiencyCommandSettings
Emulates the given vision deficiency.
- SetFocusEmulationEnabledCommandResponse
Response for Enables or disables simulating a focused and active page.
- SetFocusEmulationEnabledCommandSettings
Enables or disables simulating a focused and active page.
- SetGeolocationOverrideCommandResponse
Response for Overrides the Geolocation Position or Error. Omitting latitude, longitude or accuracy emulates position unavailable.
- SetGeolocationOverrideCommandSettings
Overrides the Geolocation Position or Error. Omitting latitude, longitude or accuracy emulates position unavailable.
- SetHardwareConcurrencyOverrideCommandResponse
Response for SetHardwareConcurrencyOverride
- SetHardwareConcurrencyOverrideCommandSettings
SetHardwareConcurrencyOverride
- SetIdleOverrideCommandResponse
Response for Overrides the Idle state.
- SetIdleOverrideCommandSettings
Overrides the Idle state.
- SetLocaleOverrideCommandResponse
Response for Overrides default host system locale with the specified one.
- SetLocaleOverrideCommandSettings
Overrides default host system locale with the specified one.
- SetNavigatorOverridesCommandResponse
Response for Overrides value returned by the javascript navigator object.
- SetNavigatorOverridesCommandSettings
Overrides value returned by the javascript navigator object.
- SetPageScaleFactorCommandResponse
Response for Sets a specified page scale factor.
- SetPageScaleFactorCommandSettings
Sets a specified page scale factor.
- SetPressureSourceOverrideEnabledCommandResponse
Response for 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.
- SetPressureSourceOverrideEnabledCommandSettings
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.
- SetPressureStateOverrideCommandResponse
Response for Provides a given pressure state that will be processed and eventually be delivered to PressureObserver users. |source| must have been previously overridden by setPressureSourceOverrideEnabled.
- SetPressureStateOverrideCommandSettings
Provides a given pressure state that will be processed and eventually be delivered to PressureObserver users. |source| must have been previously overridden by setPressureSourceOverrideEnabled.
- SetPrimaryScreenCommandResponse
Response for Set primary screen. Only supported in headless mode. Note that this changes the coordinate system origin to the top-left of the new primary screen, updating the bounds and work areas of all existing screens accordingly.
- SetPrimaryScreenCommandSettings
Set primary screen. Only supported in headless mode. Note that this changes the coordinate system origin to the top-left of the new primary screen, updating the bounds and work areas of all existing screens accordingly.
- SetSafeAreaInsetsOverrideCommandResponse
Response for Overrides the values for env(safe-area-inset-) and env(safe-area-max-inset-). Unset values will cause the respective variables to be undefined, even if previously overridden.
- SetSafeAreaInsetsOverrideCommandSettings
Overrides the values for env(safe-area-inset-) and env(safe-area-max-inset-). Unset values will cause the respective variables to be undefined, even if previously overridden.
- SetScriptExecutionDisabledCommandResponse
Response for Switches script execution in the page.
- SetScriptExecutionDisabledCommandSettings
Switches script execution in the page.
- SetScrollbarsHiddenCommandResponse
Response for SetScrollbarsHidden
- SetScrollbarsHiddenCommandSettings
SetScrollbarsHidden
- SetSensorOverrideEnabledCommandResponse
Response for 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.
- SetSensorOverrideEnabledCommandSettings
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.
- SetSensorOverrideReadingsCommandResponse
Response for Updates the sensor readings reported by a sensor type previously overridden by setSensorOverrideEnabled.
- SetSensorOverrideReadingsCommandSettings
Updates the sensor readings reported by a sensor type previously overridden by setSensorOverrideEnabled.
- SetSmallViewportHeightDifferenceOverrideCommandResponse
Response for Allows overriding the difference between the small and large viewport sizes, which determine the value of the
svhandlvhunit, respectively. Only supported for top-level frames.
- SetSmallViewportHeightDifferenceOverrideCommandSettings
Allows overriding the difference between the small and large viewport sizes, which determine the value of the
svhandlvhunit, respectively. Only supported for top-level frames.
- SetTimezoneOverrideCommandResponse
Response for Overrides default host system timezone with the specified one.
- SetTimezoneOverrideCommandSettings
Overrides default host system timezone with the specified one.
- SetTouchEmulationEnabledCommandResponse
Response for Enables touch on platforms which do not support them.
- SetTouchEmulationEnabledCommandSettings
Enables touch on platforms which do not support them.
- SetUserAgentOverrideCommandResponse
Response for Allows overriding user agent with the given string.
userAgentMetadatamust be set for Client Hint headers to be sent.
- SetUserAgentOverrideCommandSettings
Allows overriding user agent with the given string.
userAgentMetadatamust be set for Client Hint headers to be sent.
- SetVirtualKeyboardGeometryOverrideCommandResponse
Response for Overrides virtual keyboard geometry in CSS pixels, relative to the top-level viewport. The provided rect is used for navigator.virtualKeyboard.boundingRect, geometrychange events, and env(keyboard-inset-*) values on the inspected frame. The override applies independently of navigator.virtualKeyboard.overlaysContent so clients can preview overlay geometry without mutating page state. Values are rounded to the nearest CSS pixel. Omitting the rect clears the override.
- SetVirtualKeyboardGeometryOverrideCommandSettings
Overrides virtual keyboard geometry in CSS pixels, relative to the top-level viewport. The provided rect is used for navigator.virtualKeyboard.boundingRect, geometrychange events, and env(keyboard-inset-*) values on the inspected frame. The override applies independently of navigator.virtualKeyboard.overlaysContent so clients can preview overlay geometry without mutating page state. Values are rounded to the nearest CSS pixel. Omitting the rect clears the override.
- SetVirtualTimePolicyCommandResponse
Response for 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.
- SetVirtualTimePolicyCommandSettings
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.
- SetVisibleSizeCommandResponse
Response for 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.
- SetVisibleSizeCommandSettings
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.
- UpdateScreenCommandResponse
Response for Updates specified screen parameters. Only supported in headless mode.
- UpdateScreenCommandSettings
Updates specified screen parameters. Only supported in headless mode.
- UserAgentBrandVersion
Used to specify User Agent Client Hints to emulate. See https://wicg.github.io/ua-client-hints
- UserAgentMetadata
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.
- VirtualTimeBudgetExpiredEventArgs
Notification sent after the virtual time budget for the current VirtualTimePolicy has run out.
- WorkAreaInsets
WorkAreaInsets
Enums
- DevicePostureTypeValues
Enumerated values for Emulation.DevicePosture.type
- DisabledImageType
Enum of image types that can be disabled.
- DisplayFeatureOrientationValues
Enumerated values for Emulation.DisplayFeature.orientation
- PressureSource
PressureSource
- PressureState
PressureState
- ScreenOrientationTypeValues
Enumerated values for Emulation.ScreenOrientation.type
- SensorType
Used to specify sensor types to emulate. See https://w3c.github.io/sensors/#automation for more information.
- 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.