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
ExecuteCommandAsync(Command, CommandOptions?)
public Task ExecuteCommandAsync(Command command, CommandOptions? options)
Parameters
command
Commandoptions
CommandOptions
Returns
ExecuteCommandAsync<TResult>(Command, CommandOptions?)
public Task<TResult> ExecuteCommandAsync<TResult>(Command command, CommandOptions? options)
Parameters
command
Commandoptions
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
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(EventHandler)
public Task UnsubscribeAsync(EventHandler eventHandler)
Parameters
eventHandler
EventHandler