Table of Contents

Class BiDi

Namespace
OpenQA.Selenium.BiDi
Assembly
Selenium.WebDriver.dll
public sealed class BiDi : IBiDi, IAsyncDisposable
Inheritance
BiDi
Implements
Inherited Members
Extension Methods

Properties

Browser

public IBrowserModule Browser { get; }

Property Value

IBrowserModule

BrowsingContext

public IBrowsingContextModule BrowsingContext { get; }

Property Value

IBrowsingContextModule

Emulation

public IEmulationModule Emulation { get; }

Property Value

IEmulationModule

Input

public IInputModule Input { get; }

Property Value

IInputModule

Log

public ILogModule Log { get; }

Property Value

ILogModule

Network

public INetworkModule Network { get; }

Property Value

INetworkModule

Script

public IScriptModule Script { get; }

Property Value

IScriptModule

Storage

public IStorageModule Storage { get; }

Property Value

IStorageModule

WebExtension

public IWebExtensionModule WebExtension { get; }

Property Value

IWebExtensionModule

Methods

AsModule<T>()

public T AsModule<T>() where T : Module, new()

Returns

T

Type Parameters

T

ConnectAsync(string, Action<BiDiOptionsBuilder>?, CancellationToken)

public static Task<IBiDi> ConnectAsync(string url, Action<BiDiOptionsBuilder>? configure = null, CancellationToken cancellationToken = default)

Parameters

url string
configure Action<BiDiOptionsBuilder>
cancellationToken CancellationToken

Returns

Task<IBiDi>

DisposeAsync()

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

public ValueTask DisposeAsync()

Returns

ValueTask

EndAsync(EndOptions?, CancellationToken)

public Task<EndResult> EndAsync(EndOptions? options = null, CancellationToken cancellationToken = default)

Parameters

options EndOptions
cancellationToken CancellationToken

Returns

Task<EndResult>

NewAsync(CapabilitiesRequest, NewOptions?, CancellationToken)

public Task<NewResult> NewAsync(CapabilitiesRequest capabilities, NewOptions? options = null, CancellationToken cancellationToken = default)

Parameters

capabilities CapabilitiesRequest
options NewOptions
cancellationToken CancellationToken

Returns

Task<NewResult>

StatusAsync(StatusOptions?, CancellationToken)

public Task<StatusResult> StatusAsync(StatusOptions? options = null, CancellationToken cancellationToken = default)

Parameters

options StatusOptions
cancellationToken CancellationToken

Returns

Task<StatusResult>

StreamAsync<TEventArgs>(EventDescriptor<TEventArgs>, CancellationToken)

public Task<IEventStream<TEventArgs>> StreamAsync<TEventArgs>(EventDescriptor<TEventArgs> descriptor, CancellationToken cancellationToken = default) where TEventArgs : EventArgs

Parameters

descriptor EventDescriptor<TEventArgs>
cancellationToken CancellationToken

Returns

Task<IEventStream<TEventArgs>>

Type Parameters

TEventArgs

StreamAsync<TEventArgs>(IEnumerable<EventDescriptor>, CancellationToken)

public Task<IEventStream<TEventArgs>> StreamAsync<TEventArgs>(IEnumerable<EventDescriptor> descriptors, CancellationToken cancellationToken = default) where TEventArgs : EventArgs

Parameters

descriptors IEnumerable<EventDescriptor>
cancellationToken CancellationToken

Returns

Task<IEventStream<TEventArgs>>

Type Parameters

TEventArgs

SubscribeAsync<TEventArgs>(EventDescriptor<TEventArgs>, Action<TEventArgs>, CancellationToken)

public Task<ISubscription> SubscribeAsync<TEventArgs>(EventDescriptor<TEventArgs> descriptor, Action<TEventArgs> handler, CancellationToken cancellationToken = default) where TEventArgs : EventArgs

Parameters

descriptor EventDescriptor<TEventArgs>
handler Action<TEventArgs>
cancellationToken CancellationToken

Returns

Task<ISubscription>

Type Parameters

TEventArgs

SubscribeAsync<TEventArgs>(EventDescriptor<TEventArgs>, Func<TEventArgs, Task>, CancellationToken)

public Task<ISubscription> SubscribeAsync<TEventArgs>(EventDescriptor<TEventArgs> descriptor, Func<TEventArgs, Task> handler, CancellationToken cancellationToken = default) where TEventArgs : EventArgs

Parameters

descriptor EventDescriptor<TEventArgs>
handler Func<TEventArgs, Task>
cancellationToken CancellationToken

Returns

Task<ISubscription>

Type Parameters

TEventArgs

SubscribeAsync<TEventArgs>(IEnumerable<EventDescriptor>, Action<TEventArgs>, CancellationToken)

public Task<ISubscription> SubscribeAsync<TEventArgs>(IEnumerable<EventDescriptor> descriptors, Action<TEventArgs> handler, CancellationToken cancellationToken = default) where TEventArgs : EventArgs

Parameters

descriptors IEnumerable<EventDescriptor>
handler Action<TEventArgs>
cancellationToken CancellationToken

Returns

Task<ISubscription>

Type Parameters

TEventArgs

SubscribeAsync<TEventArgs>(IEnumerable<EventDescriptor>, Func<TEventArgs, Task>, CancellationToken)

public Task<ISubscription> SubscribeAsync<TEventArgs>(IEnumerable<EventDescriptor> descriptors, Func<TEventArgs, Task> handler, CancellationToken cancellationToken = default) where TEventArgs : EventArgs

Parameters

descriptors IEnumerable<EventDescriptor>
handler Func<TEventArgs, Task>
cancellationToken CancellationToken

Returns

Task<ISubscription>

Type Parameters

TEventArgs