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
DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
public ValueTask DisposeAsync()
Returns
DisposeAsyncCore()
protected virtual ValueTask DisposeAsyncCore()
Returns
ExecuteCommandAsync<TCommand>(TCommand, CommandOptions?)
public Task ExecuteCommandAsync<TCommand>(TCommand command, CommandOptions? options) where TCommand : Command
Parameters
command
TCommandoptions
CommandOptions
Returns
Type Parameters
TCommand
ExecuteCommandAsync<TCommand, TResult>(TCommand, CommandOptions?)
public Task<TResult> ExecuteCommandAsync<TCommand, TResult>(TCommand command, CommandOptions? options) where TCommand : Command
Parameters
command
TCommandoptions
CommandOptions
Returns
- Task<TResult>
Type Parameters
TCommand
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
stringaction
Action<TEventArgs>options
SubscriptionOptions
Returns
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
stringfunc
Func<TEventArgs, Task>options
SubscriptionOptions
Returns
Type Parameters
TEventArgs
UnsubscribeAsync(Subscription, EventHandler)
public Task UnsubscribeAsync(Subscription subscription, EventHandler eventHandler)
Parameters
subscription
SubscriptioneventHandler
EventHandler