Table of Contents

Class Broker

Namespace
OpenQA.Selenium.BiDi.Communication
Assembly
WebDriver.dll
public class Broker : IAsyncDisposable
Inheritance
Broker
Implements
Inherited Members

Methods

ConnectAsync(CancellationToken)

public Task ConnectAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Returns

Task

DisposeAsync()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.

public ValueTask DisposeAsync()

Returns

ValueTask

ExecuteCommandAsync(Command, CommandOptions?)

public Task ExecuteCommandAsync(Command command, CommandOptions? options)

Parameters

command Command
options CommandOptions

Returns

Task

ExecuteCommandAsync<TResult>(Command, CommandOptions?)

public Task<TResult> ExecuteCommandAsync<TResult>(Command command, CommandOptions? options)

Parameters

command Command
options CommandOptions

Returns

Task<TResult>

Type Parameters

TResult

SubscribeAsync<TEventArgs>(string, Action<TEventArgs>, SubscriptionOptions?)

public Task<Subscription> SubscribeAsync<TEventArgs>(string eventName, Action<TEventArgs> action, SubscriptionOptions? options = null) where TEventArgs : EventArgs

Parameters

eventName string
action Action<TEventArgs>
options SubscriptionOptions

Returns

Task<Subscription>

Type Parameters

TEventArgs

SubscribeAsync<TEventArgs>(string, Func<TEventArgs, Task>, SubscriptionOptions?)

public Task<Subscription> SubscribeAsync<TEventArgs>(string eventName, Func<TEventArgs, Task> func, SubscriptionOptions? options = null) where TEventArgs : EventArgs

Parameters

eventName string
func Func<TEventArgs, Task>
options SubscriptionOptions

Returns

Task<Subscription>

Type Parameters

TEventArgs

UnsubscribeAsync(EventHandler)

public Task UnsubscribeAsync(EventHandler eventHandler)

Parameters

eventHandler EventHandler

Returns

Task