Table of Contents

Class BrowsingContextNetworkModule

Namespace
OpenQA.Selenium.BiDi.Modules.BrowsingContext
Assembly
WebDriver.dll
public class BrowsingContextNetworkModule
Inheritance
BrowsingContextNetworkModule
Inherited Members

Constructors

BrowsingContextNetworkModule(BrowsingContext, NetworkModule)

public BrowsingContextNetworkModule(BrowsingContext context, NetworkModule networkModule)

Parameters

context BrowsingContext
networkModule NetworkModule

Methods

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

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

Parameters

handler Func<AuthRequiredEventArgs, Task>
interceptOptions BrowsingContextAddInterceptOptions
options SubscriptionOptions

Returns

Task<Intercept>

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

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

Parameters

handler Func<BeforeRequestSentEventArgs, Task>
interceptOptions BrowsingContextAddInterceptOptions
options SubscriptionOptions

Returns

Task<Intercept>

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

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

Parameters

handler Func<ResponseStartedEventArgs, Task>
interceptOptions BrowsingContextAddInterceptOptions
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>