Table of Contents

Class V132Network

Namespace
OpenQA.Selenium.DevTools.V132
Assembly
WebDriver.dll

Class providing functionality for manipulating network calls using version 132 of the DevTools Protocol

public class V132Network : Network
Inheritance
V132Network
Inherited Members

Constructors

V132Network(NetworkAdapter, FetchAdapter)

Initializes a new instance of the V132Network class.

public V132Network(NetworkAdapter network, FetchAdapter fetch)

Parameters

network NetworkAdapter

The adapter for the Network domain.

fetch FetchAdapter

The adapter for the Fetch domain.

Methods

AddResponseBody(HttpResponseData)

Asynchronously adds the response body to the provided HttpResponseData object.

public override Task AddResponseBody(HttpResponseData responseData)

Parameters

responseData HttpResponseData

The HttpResponseData object to which to add the response body.

Returns

Task

A task that represents the asynchronous operation.

CancelAuth(string)

Asynchronously cancels authorization of an intercepted network request.

public override Task CancelAuth(string requestId)

Parameters

requestId string

The ID of the network request for which to cancel authentication.

Returns

Task

A task that represents the asynchronous operation.

ContinueRequest(HttpRequestData)

Asynchronously continues an intercepted network request.

public override Task ContinueRequest(HttpRequestData requestData)

Parameters

requestData HttpRequestData

The HttpRequestData of the request.

Returns

Task

A task that represents the asynchronous operation.

ContinueRequestWithResponse(HttpRequestData, HttpResponseData)

Asynchronously continues an intercepted network request.

public override Task ContinueRequestWithResponse(HttpRequestData requestData, HttpResponseData responseData)

Parameters

requestData HttpRequestData

The HttpRequestData of the request.

responseData HttpResponseData

The HttpResponseData with which to respond to the request

Returns

Task

A task that represents the asynchronous operation.

ContinueRequestWithoutModification(HttpRequestData)

Asynchronously contines an intercepted network call without modification.

public override Task ContinueRequestWithoutModification(HttpRequestData requestData)

Parameters

requestData HttpRequestData

The HttpRequestData of the network call.

Returns

Task

A task that represents the asynchronous operation.

ContinueResponseWithoutModification(HttpResponseData)

Asynchronously continues an intercepted network response without modification.

public override Task ContinueResponseWithoutModification(HttpResponseData responseData)

Parameters

responseData HttpResponseData

The HttpResponseData of the network response.

Returns

Task

A task that represents the asynchronous operation.

ContinueWithAuth(string, string, string)

Asynchronously continues an intercepted network call using authentication.

public override Task ContinueWithAuth(string requestId, string userName, string password)

Parameters

requestId string

The ID of the network request for which to continue with authentication.

userName string

The user name with which to authenticate.

password string

The password with which to authenticate.

Returns

Task

A task that represents the asynchronous operation.

DisableFetch()

Asynchronously diables the fetch domain.

public override Task DisableFetch()

Returns

Task

A task that represents the asynchronous operation.

DisableNetwork()

Asynchronously disables the Network domain..

public override Task DisableNetwork()

Returns

Task

A task that represents the asynchronous operation.

DisableNetworkCaching()

Asynchronously disables network caching.

public override Task DisableNetworkCaching()

Returns

Task

A task that represents the asynchronous operation.

EnableFetchForAllPatterns()

Asynchronously enables the fetch domain for all URL patterns.

public override Task EnableFetchForAllPatterns()

Returns

Task

A task that represents the asynchronous operation.

EnableNetwork()

Asynchronously enables the Network domain..

public override Task EnableNetwork()

Returns

Task

A task that represents the asynchronous operation.

EnableNetworkCaching()

Asynchronously enables network caching.

public override Task EnableNetworkCaching()

Returns

Task

A task that represents the asynchronous operation.

SetUserAgentOverride(UserAgent)

Asynchronously sets the override of the user agent settings.

public override Task SetUserAgentOverride(UserAgent userAgent)

Parameters

userAgent UserAgent

A UserAgent object containing the user agent values to override.

Returns

Task

A task that represents the asynchronous operation.