Table of Contents

Class RequestPausedEventArgs

Namespace
Selenium.WebDriver.BiDi.Cdp.Fetch
Assembly
Selenium.WebDriver.BiDi.Cdp.dll

Issued when the domain is enabled and the request URL matches the specified filter. The request is paused until the client responds with one of continueRequest, failRequest or fulfillRequest. The stage of the request can be determined by presence of responseErrorReason and responseStatusCode -- the request is at the response stage if either of these fields is present and in the request stage otherwise. Redirect responses and subsequent requests are reported similarly to regular responses and requests. Redirect responses may be distinguished by the value of responseStatusCode (which is one of 301, 302, 303, 307, 308) along with presence of the location header. Requests resulting from a redirect will have redirectedRequestId field set.

public sealed record RequestPausedEventArgs : EventArgs, IEquatable<EventArgs>, IEquatable<RequestPausedEventArgs>
Inheritance
EventArgs
RequestPausedEventArgs
Implements
IEquatable<EventArgs>
Inherited Members
EventArgs.ToString()
EventArgs.GetHashCode()
EventArgs.Equals(EventArgs)
EventArgs.<Clone>$()
EventArgs.BiDi
EventArgs.AdditionalData
EventArgs.AdditionalMessageData

Constructors

RequestPausedEventArgs(RequestId, Request, FrameId, ResourceType, ErrorReason?, long?, string?, ImmutableArray<HeaderEntry>?, RequestId?, RequestId?)

Issued when the domain is enabled and the request URL matches the specified filter. The request is paused until the client responds with one of continueRequest, failRequest or fulfillRequest. The stage of the request can be determined by presence of responseErrorReason and responseStatusCode -- the request is at the response stage if either of these fields is present and in the request stage otherwise. Redirect responses and subsequent requests are reported similarly to regular responses and requests. Redirect responses may be distinguished by the value of responseStatusCode (which is one of 301, 302, 303, 307, 308) along with presence of the location header. Requests resulting from a redirect will have redirectedRequestId field set.

public RequestPausedEventArgs(RequestId RequestId, Request Request, FrameId FrameId, ResourceType ResourceType, ErrorReason? ResponseErrorReason = null, long? ResponseStatusCode = null, string? ResponseStatusText = null, ImmutableArray<HeaderEntry>? ResponseHeaders = null, RequestId? NetworkId = null, RequestId? RedirectedRequestId = null)

Parameters

RequestId RequestId

Each request the page makes will have a unique id.

Request Request

The details of the request.

FrameId FrameId

The id of the frame that initiated the request.

ResourceType ResourceType

How the requested resource will be used.

ResponseErrorReason ErrorReason?

Response error if intercepted at response stage.

ResponseStatusCode long?

Response code if intercepted at response stage.

ResponseStatusText string

Response status text if intercepted at response stage.

ResponseHeaders ImmutableArray<HeaderEntry>?

Response headers if intercepted at the response stage.

NetworkId RequestId

If the intercepted request had a corresponding Network.requestWillBeSent event fired for it, then this networkId will be the same as the requestId present in the requestWillBeSent event.

RedirectedRequestId RequestId

If the request is due to a redirect response from the server, the id of the request that has caused the redirect.

Properties

FrameId

The id of the frame that initiated the request.

public FrameId FrameId { get; init; }

Property Value

FrameId

NetworkId

If the intercepted request had a corresponding Network.requestWillBeSent event fired for it, then this networkId will be the same as the requestId present in the requestWillBeSent event.

public RequestId? NetworkId { get; init; }

Property Value

RequestId

RedirectedRequestId

If the request is due to a redirect response from the server, the id of the request that has caused the redirect.

public RequestId? RedirectedRequestId { get; init; }

Property Value

RequestId

Request

The details of the request.

public Request Request { get; init; }

Property Value

Request

RequestId

Each request the page makes will have a unique id.

public RequestId RequestId { get; init; }

Property Value

RequestId

ResourceType

How the requested resource will be used.

public ResourceType ResourceType { get; init; }

Property Value

ResourceType

ResponseErrorReason

Response error if intercepted at response stage.

public ErrorReason? ResponseErrorReason { get; init; }

Property Value

ErrorReason?

ResponseHeaders

Response headers if intercepted at the response stage.

public ImmutableArray<HeaderEntry>? ResponseHeaders { get; init; }

Property Value

ImmutableArray<HeaderEntry>?

ResponseStatusCode

Response code if intercepted at response stage.

public long? ResponseStatusCode { get; init; }

Property Value

long?

ResponseStatusText

Response status text if intercepted at response stage.

public string? ResponseStatusText { get; init; }

Property Value

string