Table of Contents

Class BluetoothEmulationAdapter

Namespace
OpenQA.Selenium.DevTools.V132.BluetoothEmulation
Assembly
WebDriver.dll

Represents an adapter for the BluetoothEmulation domain to simplify the command interface.

public class BluetoothEmulationAdapter
Inheritance
BluetoothEmulationAdapter
Inherited Members

Constructors

BluetoothEmulationAdapter(IDevToolsSession)

Initializes a new instance of the BluetoothEmulationAdapter class.

public BluetoothEmulationAdapter(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

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, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command EnableCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<EnableCommandResponse>

SimulateAdvertisement(SimulateAdvertisementCommandSettings, CancellationToken, int?, bool)

simulateAdvertisement

public Task<SimulateAdvertisementCommandResponse> SimulateAdvertisement(SimulateAdvertisementCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command SimulateAdvertisementCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<SimulateAdvertisementCommandResponse>

SimulatePreconnectedPeripheral(SimulatePreconnectedPeripheralCommandSettings, CancellationToken, int?, bool)

simulatePreconnectedPeripheral

public Task<SimulatePreconnectedPeripheralCommandResponse> SimulatePreconnectedPeripheral(SimulatePreconnectedPeripheralCommandSettings command, CancellationToken cancellationToken = default, int? millisecondsTimeout = null, bool throwExceptionIfResponseNotReceived = true)

Parameters

command SimulatePreconnectedPeripheralCommandSettings
cancellationToken CancellationToken
millisecondsTimeout int?
throwExceptionIfResponseNotReceived bool

Returns

Task<SimulatePreconnectedPeripheralCommandResponse>