Table of Contents

Class DeviceAccessAdapter

Namespace
OpenQA.Selenium.DevTools.V131.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 IDevToolsSession

The IDevToolsSession to be used with this adapter.

Properties

Session

Gets the DevToolsSession associated with the adapter.

public IDevToolsSession Session { get; }

Property Value

IDevToolsSession

Methods

CancelPrompt(CancelPromptCommandSettings, CancellationToken, int?, bool)

cancelPrompt

public Task<CancelPromptCommandResponse> CancelPrompt(CancelPromptCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command CancelPromptCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<CancelPromptCommandResponse>

Disable(DisableCommandSettings, CancellationToken, int?, bool)

disable

public Task<DisableCommandResponse> Disable(DisableCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command DisableCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<DisableCommandResponse>

Enable(EnableCommandSettings, CancellationToken, int?, bool)

enable

public Task<EnableCommandResponse> Enable(EnableCommandSettings command = null, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command EnableCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<EnableCommandResponse>

SelectPrompt(SelectPromptCommandSettings, CancellationToken, int?, bool)

selectPrompt

public Task<SelectPromptCommandResponse> SelectPrompt(SelectPromptCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command SelectPromptCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<SelectPromptCommandResponse>

Events

DeviceRequestPrompted

deviceRequestPrompted

public event EventHandler<DeviceRequestPromptedEventArgs> DeviceRequestPrompted

Event Type

EventHandler<DeviceRequestPromptedEventArgs>