Table of Contents

Class RequestPausedEventArgs

Namespace
OpenQA.Selenium.DevTools.V147.Fetch
Assembly
Selenium.WebDriver.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 class RequestPausedEventArgs : EventArgs
Inheritance
RequestPausedEventArgs
Inherited Members

Properties

FrameId

The id of the frame that initiated the request.

[JsonPropertyName("frameId")]
public string FrameId { get; set; }

Property Value

string

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.

[JsonPropertyName("networkId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? NetworkId { get; set; }

Property Value

string

RedirectedRequestId

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

[JsonPropertyName("redirectedRequestId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? RedirectedRequestId { get; set; }

Property Value

string

Request

The details of the request.

[JsonPropertyName("request")]
public Request Request { get; set; }

Property Value

Request

RequestId

Each request the page makes will have a unique id.

[JsonPropertyName("requestId")]
public string RequestId { get; set; }

Property Value

string

ResourceType

How the requested resource will be used.

[JsonPropertyName("resourceType")]
public ResourceType ResourceType { get; set; }

Property Value

ResourceType

ResponseErrorReason

Response error if intercepted at response stage.

[JsonPropertyName("responseErrorReason")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public ErrorReason? ResponseErrorReason { get; set; }

Property Value

ErrorReason?

ResponseHeaders

Response headers if intercepted at the response stage.

[JsonPropertyName("responseHeaders")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public HeaderEntry[]? ResponseHeaders { get; set; }

Property Value

HeaderEntry[]

ResponseStatusCode

Response code if intercepted at response stage.

[JsonPropertyName("responseStatusCode")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? ResponseStatusCode { get; set; }

Property Value

long?

ResponseStatusText

Response status text if intercepted at response stage.

[JsonPropertyName("responseStatusText")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? ResponseStatusText { get; set; }

Property Value

string