A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://seleniumhq.github.io/selenium/docs/api/dotnet/webdriver/OpenQA.Selenium.INetwork.html below:

Interface INetwork

Interface INetwork
Namespace
OpenQA.Selenium
Assembly
WebDriver.dll

Defines an interface allowing the user to manage network communication by the browser.

public interface INetwork
Methods AddAuthenticationHandler(NetworkAuthenticationHandler)

Adds a NetworkAuthenticationHandler to supply authentication credentials for network requests.

void AddAuthenticationHandler(NetworkAuthenticationHandler handler)
Parameters
handler NetworkAuthenticationHandler

The NetworkAuthenticationHandler to add.

AddRequestHandler(NetworkRequestHandler)

Adds a NetworkRequestHandler to examine incoming network requests, and optionally modify the request or provide a response.

void AddRequestHandler(NetworkRequestHandler handler)
Parameters
handler NetworkRequestHandler

The NetworkRequestHandler to add.

AddResponseHandler(NetworkResponseHandler)

Adds a NetworkResponseHandler to examine received network responses, and optionally modify the response.

void AddResponseHandler(NetworkResponseHandler handler)
Parameters
handler NetworkResponseHandler

The NetworkResponseHandler to add.

ClearAuthenticationHandlers()

Clears all added NetworkAuthenticationHandler instances.

void ClearAuthenticationHandlers()
ClearRequestHandlers()

Clears all added NetworkRequestHandler instances.

void ClearRequestHandlers()
ClearResponseHandlers()

Clears all added NetworkResponseHandler instances.

void ClearResponseHandlers()
StartMonitoring()

Asynchronously starts monitoring for network traffic.

Returns
Task

A task that represents the asynchronous operation.

StopMonitoring()

Asynchronously stops monitoring for network traffic.

Returns
Task

A task that represents the asynchronous operation.

Events NetworkRequestSent

Occurs when a browser sends a network request.

event EventHandler<NetworkRequestSentEventArgs>? NetworkRequestSent
Event Type
EventHandler<NetworkRequestSentEventArgs>
NetworkResponseReceived

Occurs when a browser receives a network response.

event EventHandler<NetworkResponseReceivedEventArgs>? NetworkResponseReceived
Event Type
EventHandler<NetworkResponseReceivedEventArgs>

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4