Table of Contents

Class NetworkModule

Namespace
OpenQA.Selenium.BiDi.Modules.Network
Assembly
WebDriver.dll
public sealed class NetworkModule : Module
Inheritance
NetworkModule
Inherited Members

Constructors

NetworkModule(Broker)

public NetworkModule(Broker broker)

Parameters

broker Broker

Methods

InterceptAuthAsync(Func<AuthRequiredEventArgs, Task>, AddInterceptOptions?, SubscriptionOptions?)

public Task<Intercept> InterceptAuthAsync(Func<AuthRequiredEventArgs, Task> handler, AddInterceptOptions? interceptOptions = null, SubscriptionOptions? options = null)

Parameters

handler Func<AuthRequiredEventArgs, Task>
interceptOptions AddInterceptOptions
options SubscriptionOptions

Returns

Task<Intercept>

InterceptRequestAsync(Func<BeforeRequestSentEventArgs, Task>, AddInterceptOptions?, SubscriptionOptions?)

public Task<Intercept> InterceptRequestAsync(Func<BeforeRequestSentEventArgs, Task> handler, AddInterceptOptions? interceptOptions = null, SubscriptionOptions? options = null)

Parameters

handler Func<BeforeRequestSentEventArgs, Task>
interceptOptions AddInterceptOptions
options SubscriptionOptions

Returns

Task<Intercept>

InterceptResponseAsync(Func<ResponseStartedEventArgs, Task>, AddInterceptOptions?, SubscriptionOptions?)

public Task<Intercept> InterceptResponseAsync(Func<ResponseStartedEventArgs, Task> handler, AddInterceptOptions? interceptOptions = null, SubscriptionOptions? options = null)

Parameters

handler Func<ResponseStartedEventArgs, Task>
interceptOptions AddInterceptOptions
options SubscriptionOptions

Returns

Task<Intercept>

OnAuthRequiredAsync(Action<AuthRequiredEventArgs>, SubscriptionOptions?)

public Task<Subscription> OnAuthRequiredAsync(Action<AuthRequiredEventArgs> handler, SubscriptionOptions? options = null)

Parameters

handler Action<AuthRequiredEventArgs>
options SubscriptionOptions

Returns

Task<Subscription>

OnAuthRequiredAsync(Func<AuthRequiredEventArgs, Task>, SubscriptionOptions?)

public Task<Subscription> OnAuthRequiredAsync(Func<AuthRequiredEventArgs, Task> handler, SubscriptionOptions? options = null)

Parameters

handler Func<AuthRequiredEventArgs, Task>
options SubscriptionOptions

Returns

Task<Subscription>

OnBeforeRequestSentAsync(Action<BeforeRequestSentEventArgs>, SubscriptionOptions?)

public Task<Subscription> OnBeforeRequestSentAsync(Action<BeforeRequestSentEventArgs> handler, SubscriptionOptions? options = null)

Parameters

handler Action<BeforeRequestSentEventArgs>
options SubscriptionOptions

Returns

Task<Subscription>

OnBeforeRequestSentAsync(Func<BeforeRequestSentEventArgs, Task>, SubscriptionOptions?)

public Task<Subscription> OnBeforeRequestSentAsync(Func<BeforeRequestSentEventArgs, Task> handler, SubscriptionOptions? options = null)

Parameters

handler Func<BeforeRequestSentEventArgs, Task>
options SubscriptionOptions

Returns

Task<Subscription>

OnFetchErrorAsync(Action<FetchErrorEventArgs>, SubscriptionOptions?)

public Task<Subscription> OnFetchErrorAsync(Action<FetchErrorEventArgs> handler, SubscriptionOptions? options = null)

Parameters

handler Action<FetchErrorEventArgs>
options SubscriptionOptions

Returns

Task<Subscription>

OnFetchErrorAsync(Func<FetchErrorEventArgs, Task>, SubscriptionOptions?)

public Task<Subscription> OnFetchErrorAsync(Func<FetchErrorEventArgs, Task> handler, SubscriptionOptions? options = null)

Parameters

handler Func<FetchErrorEventArgs, Task>
options SubscriptionOptions

Returns

Task<Subscription>

OnResponseCompletedAsync(Action<ResponseCompletedEventArgs>, SubscriptionOptions?)

public Task<Subscription> OnResponseCompletedAsync(Action<ResponseCompletedEventArgs> handler, SubscriptionOptions? options = null)

Parameters

handler Action<ResponseCompletedEventArgs>
options SubscriptionOptions

Returns

Task<Subscription>

OnResponseCompletedAsync(Func<ResponseCompletedEventArgs, Task>, SubscriptionOptions?)

public Task<Subscription> OnResponseCompletedAsync(Func<ResponseCompletedEventArgs, Task> handler, SubscriptionOptions? options = null)

Parameters

handler Func<ResponseCompletedEventArgs, Task>
options SubscriptionOptions

Returns

Task<Subscription>

OnResponseStartedAsync(Action<ResponseStartedEventArgs>, SubscriptionOptions?)

public Task<Subscription> OnResponseStartedAsync(Action<ResponseStartedEventArgs> handler, SubscriptionOptions? options = null)

Parameters

handler Action<ResponseStartedEventArgs>
options SubscriptionOptions

Returns

Task<Subscription>

OnResponseStartedAsync(Func<ResponseStartedEventArgs, Task>, SubscriptionOptions?)

public Task<Subscription> OnResponseStartedAsync(Func<ResponseStartedEventArgs, Task> handler, SubscriptionOptions? options = null)

Parameters

handler Func<ResponseStartedEventArgs, Task>
options SubscriptionOptions

Returns

Task<Subscription>