Class EmulationAdapter
Represents an adapter for the Emulation domain to simplify the command interface.
- Inheritance
-
Emulation
Adapter
- Inherited Members
Constructors
EmulationAdapter(IDevToolsSession)
Initializes a new instance of the EmulationAdapter class.
Parameters
session
IDevTools Session The IDevToolsSession to be used with this adapter.
Properties
Session
Gets the DevToolsSession associated with the adapter.
Property Value
Methods
CanEmulate(CanEmulateCommandSettings, CancellationToken, int?, bool)
canEmulate
public Task<CanEmulateCommandResponse> CanEmulate(CanEmulateCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
CanEmulate Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
ClearDeviceMetricsOverride(ClearDeviceMetricsOverrideCommandSettings, CancellationToken, int?, bool)
clearDeviceMetricsOverride
public Task<ClearDeviceMetricsOverrideCommandResponse> ClearDeviceMetricsOverride(ClearDeviceMetricsOverrideCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
ClearDevice Metrics Override Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
ClearDevicePostureOverride(ClearDevicePostureOverrideCommandSettings, CancellationToken, int?, bool)
clearDevicePostureOverride
public Task<ClearDevicePostureOverrideCommandResponse> ClearDevicePostureOverride(ClearDevicePostureOverrideCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
ClearDevice Posture Override Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
ClearGeolocationOverride(ClearGeolocationOverrideCommandSettings, CancellationToken, int?, bool)
clearGeolocationOverride
public Task<ClearGeolocationOverrideCommandResponse> ClearGeolocationOverride(ClearGeolocationOverrideCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
ClearGeolocation Override Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
ClearIdleOverride(ClearIdleOverrideCommandSettings, CancellationToken, int?, bool)
clearIdleOverride
public Task<ClearIdleOverrideCommandResponse> ClearIdleOverride(ClearIdleOverrideCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
ClearIdle Override Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
GetOverriddenSensorInformation(GetOverriddenSensorInformationCommandSettings, CancellationToken, int?, bool)
getOverriddenSensorInformation
public Task<GetOverriddenSensorInformationCommandResponse> GetOverriddenSensorInformation(GetOverriddenSensorInformationCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
GetOverridden Sensor Information Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
ResetPageScaleFactor(ResetPageScaleFactorCommandSettings, CancellationToken, int?, bool)
resetPageScaleFactor
public Task<ResetPageScaleFactorCommandResponse> ResetPageScaleFactor(ResetPageScaleFactorCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
ResetPage Scale Factor Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetAutoDarkModeOverride(SetAutoDarkModeOverrideCommandSettings, CancellationToken, int?, bool)
setAutoDarkModeOverride
public Task<SetAutoDarkModeOverrideCommandResponse> SetAutoDarkModeOverride(SetAutoDarkModeOverrideCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetAuto Dark Mode Override Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetAutomationOverride(SetAutomationOverrideCommandSettings, CancellationToken, int?, bool)
setAutomationOverride
public Task<SetAutomationOverrideCommandResponse> SetAutomationOverride(SetAutomationOverrideCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetAutomation Override Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetCPUThrottlingRate(SetCPUThrottlingRateCommandSettings, CancellationToken, int?, bool)
setCPUThrottlingRate
public Task<SetCPUThrottlingRateCommandResponse> SetCPUThrottlingRate(SetCPUThrottlingRateCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetCPUThrottling Rate Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetDefaultBackgroundColorOverride(SetDefaultBackgroundColorOverrideCommandSettings, CancellationToken, int?, bool)
setDefaultBackgroundColorOverride
public Task<SetDefaultBackgroundColorOverrideCommandResponse> SetDefaultBackgroundColorOverride(SetDefaultBackgroundColorOverrideCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetDefault Background Color Override Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetDeviceMetricsOverride(SetDeviceMetricsOverrideCommandSettings, CancellationToken, int?, bool)
setDeviceMetricsOverride
public Task<SetDeviceMetricsOverrideCommandResponse> SetDeviceMetricsOverride(SetDeviceMetricsOverrideCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetDevice Metrics Override Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetDevicePostureOverride(SetDevicePostureOverrideCommandSettings, CancellationToken, int?, bool)
setDevicePostureOverride
public Task<SetDevicePostureOverrideCommandResponse> SetDevicePostureOverride(SetDevicePostureOverrideCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetDevice Posture Override Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetDisabledImageTypes(SetDisabledImageTypesCommandSettings, CancellationToken, int?, bool)
setDisabledImageTypes
public Task<SetDisabledImageTypesCommandResponse> SetDisabledImageTypes(SetDisabledImageTypesCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetDisabled Image Types Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetDocumentCookieDisabled(SetDocumentCookieDisabledCommandSettings, CancellationToken, int?, bool)
setDocumentCookieDisabled
public Task<SetDocumentCookieDisabledCommandResponse> SetDocumentCookieDisabled(SetDocumentCookieDisabledCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetDocument Cookie Disabled Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetEmitTouchEventsForMouse(SetEmitTouchEventsForMouseCommandSettings, CancellationToken, int?, bool)
setEmitTouchEventsForMouse
public Task<SetEmitTouchEventsForMouseCommandResponse> SetEmitTouchEventsForMouse(SetEmitTouchEventsForMouseCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetEmit Touch Events For Mouse Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetEmulatedMedia(SetEmulatedMediaCommandSettings, CancellationToken, int?, bool)
setEmulatedMedia
public Task<SetEmulatedMediaCommandResponse> SetEmulatedMedia(SetEmulatedMediaCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetEmulated Media Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetEmulatedVisionDeficiency(SetEmulatedVisionDeficiencyCommandSettings, CancellationToken, int?, bool)
setEmulatedVisionDeficiency
public Task<SetEmulatedVisionDeficiencyCommandResponse> SetEmulatedVisionDeficiency(SetEmulatedVisionDeficiencyCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetEmulated Vision Deficiency Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetFocusEmulationEnabled(SetFocusEmulationEnabledCommandSettings, CancellationToken, int?, bool)
setFocusEmulationEnabled
public Task<SetFocusEmulationEnabledCommandResponse> SetFocusEmulationEnabled(SetFocusEmulationEnabledCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetFocus Emulation Enabled Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetGeolocationOverride(SetGeolocationOverrideCommandSettings, CancellationToken, int?, bool)
setGeolocationOverride
public Task<SetGeolocationOverrideCommandResponse> SetGeolocationOverride(SetGeolocationOverrideCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetGeolocation Override Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetHardwareConcurrencyOverride(SetHardwareConcurrencyOverrideCommandSettings, CancellationToken, int?, bool)
setHardwareConcurrencyOverride
public Task<SetHardwareConcurrencyOverrideCommandResponse> SetHardwareConcurrencyOverride(SetHardwareConcurrencyOverrideCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetHardware Concurrency Override Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetIdleOverride(SetIdleOverrideCommandSettings, CancellationToken, int?, bool)
setIdleOverride
public Task<SetIdleOverrideCommandResponse> SetIdleOverride(SetIdleOverrideCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetIdle Override Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetLocaleOverride(SetLocaleOverrideCommandSettings, CancellationToken, int?, bool)
setLocaleOverride
public Task<SetLocaleOverrideCommandResponse> SetLocaleOverride(SetLocaleOverrideCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetLocale Override Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetNavigatorOverrides(SetNavigatorOverridesCommandSettings, CancellationToken, int?, bool)
setNavigatorOverrides
public Task<SetNavigatorOverridesCommandResponse> SetNavigatorOverrides(SetNavigatorOverridesCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetNavigator Overrides Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetPageScaleFactor(SetPageScaleFactorCommandSettings, CancellationToken, int?, bool)
setPageScaleFactor
public Task<SetPageScaleFactorCommandResponse> SetPageScaleFactor(SetPageScaleFactorCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetPage Scale Factor Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetPressureSourceOverrideEnabled(SetPressureSourceOverrideEnabledCommandSettings, CancellationToken, int?, bool)
setPressureSourceOverrideEnabled
public Task<SetPressureSourceOverrideEnabledCommandResponse> SetPressureSourceOverrideEnabled(SetPressureSourceOverrideEnabledCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetPressure Source Override Enabled Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetPressureStateOverride(SetPressureStateOverrideCommandSettings, CancellationToken, int?, bool)
setPressureStateOverride
public Task<SetPressureStateOverrideCommandResponse> SetPressureStateOverride(SetPressureStateOverrideCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetPressure State Override Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetScriptExecutionDisabled(SetScriptExecutionDisabledCommandSettings, CancellationToken, int?, bool)
setScriptExecutionDisabled
public Task<SetScriptExecutionDisabledCommandResponse> SetScriptExecutionDisabled(SetScriptExecutionDisabledCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetScript Execution Disabled Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetScrollbarsHidden(SetScrollbarsHiddenCommandSettings, CancellationToken, int?, bool)
setScrollbarsHidden
public Task<SetScrollbarsHiddenCommandResponse> SetScrollbarsHidden(SetScrollbarsHiddenCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetScrollbars Hidden Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetSensorOverrideEnabled(SetSensorOverrideEnabledCommandSettings, CancellationToken, int?, bool)
setSensorOverrideEnabled
public Task<SetSensorOverrideEnabledCommandResponse> SetSensorOverrideEnabled(SetSensorOverrideEnabledCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetSensor Override Enabled Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetSensorOverrideReadings(SetSensorOverrideReadingsCommandSettings, CancellationToken, int?, bool)
setSensorOverrideReadings
public Task<SetSensorOverrideReadingsCommandResponse> SetSensorOverrideReadings(SetSensorOverrideReadingsCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetSensor Override Readings Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetTimezoneOverride(SetTimezoneOverrideCommandSettings, CancellationToken, int?, bool)
setTimezoneOverride
public Task<SetTimezoneOverrideCommandResponse> SetTimezoneOverride(SetTimezoneOverrideCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetTimezone Override Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetTouchEmulationEnabled(SetTouchEmulationEnabledCommandSettings, CancellationToken, int?, bool)
setTouchEmulationEnabled
public Task<SetTouchEmulationEnabledCommandResponse> SetTouchEmulationEnabled(SetTouchEmulationEnabledCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetTouch Emulation Enabled Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetUserAgentOverride(SetUserAgentOverrideCommandSettings, CancellationToken, int?, bool)
setUserAgentOverride
public Task<SetUserAgentOverrideCommandResponse> SetUserAgentOverride(SetUserAgentOverrideCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetUser Agent Override Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetVirtualTimePolicy(SetVirtualTimePolicyCommandSettings, CancellationToken, int?, bool)
setVirtualTimePolicy
public Task<SetVirtualTimePolicyCommandResponse> SetVirtualTimePolicy(SetVirtualTimePolicyCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetVirtual Time Policy Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SetVisibleSize(SetVisibleSizeCommandSettings, CancellationToken, int?, bool)
setVisibleSize
public Task<SetVisibleSizeCommandResponse> SetVisibleSize(SetVisibleSizeCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SetVisible Size Command Settings cancellationToken
CancellationToken millisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Events
VirtualTimeBudgetExpired
virtualTimeBudgetExpired