Class DeviceAccessAdapter
- Namespace
- OpenQA.Selenium.DevTools.V135.DeviceAccess
- Assembly
- WebDriver.dll
Represents an adapter for the DeviceAccess domain to simplify the command interface.
public class DeviceAccessAdapter
- Inheritance
-
DeviceAccessAdapter
- Inherited Members
Constructors
DeviceAccessAdapter(IDevToolsSession)
Initializes a new instance of the DeviceAccessAdapter class.
public DeviceAccessAdapter(IDevToolsSession session)
Parameters
session
IDevToolsSessionThe IDevToolsSession to be used with this adapter.
Exceptions
- ArgumentNullException
If
session
is null.
Properties
Session
Gets the DevToolsSession associated with the adapter.
public IDevToolsSession Session { get; }
Property Value
Methods
CancelPrompt(CancelPromptCommandSettings, CancellationToken, int?, bool)
cancelPrompt
public Task<CancelPromptCommandResponse?> CancelPrompt(CancelPromptCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
CancelPromptCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Disable(DisableCommandSettings?, CancellationToken, int?, bool)
disable
public Task<DisableCommandResponse?> Disable(DisableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
DisableCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Enable(EnableCommandSettings?, CancellationToken, int?, bool)
enable
public Task<EnableCommandResponse?> Enable(EnableCommandSettings? command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
EnableCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
SelectPrompt(SelectPromptCommandSettings, CancellationToken, int?, bool)
selectPrompt
public Task<SelectPromptCommandResponse?> SelectPrompt(SelectPromptCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)
Parameters
command
SelectPromptCommandSettingscancellationToken
CancellationTokenmillisecondsTimeout
int?throwExceptionIfResponseNotReceived
bool
Returns
Events
DeviceRequestPrompted
deviceRequestPrompted
public event EventHandler<DeviceRequestPromptedEventArgs>? DeviceRequestPrompted