Table of Contents

Class RequestWillBeSentEventArgs

Namespace
OpenQA.Selenium.DevTools.V146.Network
Assembly
Selenium.WebDriver.dll

Fired when page is about to send HTTP request.

public sealed class RequestWillBeSentEventArgs : EventArgs
Inheritance
RequestWillBeSentEventArgs
Inherited Members

Properties

DocumentURL

URL of the document this request is loaded for.

[JsonPropertyName("documentURL")]
public string DocumentURL { get; set; }

Property Value

string

FrameId

Frame identifier.

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

Property Value

string

HasUserGesture

Whether the request is initiated by a user gesture. Defaults to false.

[JsonPropertyName("hasUserGesture")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? HasUserGesture { get; set; }

Property Value

bool?

Initiator

Request initiator.

[JsonPropertyName("initiator")]
public Initiator Initiator { get; set; }

Property Value

Initiator

LoaderId

Loader identifier. Empty string if the request is fetched from worker.

[JsonPropertyName("loaderId")]
public string LoaderId { get; set; }

Property Value

string

RedirectHasExtraInfo

In the case that redirectResponse is populated, this flag indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted for the request which was just redirected.

[JsonPropertyName("redirectHasExtraInfo")]
public bool RedirectHasExtraInfo { get; set; }

Property Value

bool

RedirectResponse

Redirect response data.

[JsonPropertyName("redirectResponse")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public Response? RedirectResponse { get; set; }

Property Value

Response

RenderBlockingBehavior

The render blocking behavior of the request.

[JsonPropertyName("renderBlockingBehavior")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public RenderBlockingBehavior? RenderBlockingBehavior { get; set; }

Property Value

RenderBlockingBehavior?

Request

Request data.

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

Property Value

Request

RequestId

Request identifier.

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

Property Value

string

Timestamp

Timestamp.

[JsonPropertyName("timestamp")]
public double Timestamp { get; set; }

Property Value

double

Type

Type of this resource.

[JsonPropertyName("type")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public ResourceType? Type { get; set; }

Property Value

ResourceType?

WallTime

Timestamp.

[JsonPropertyName("wallTime")]
public double WallTime { get; set; }

Property Value

double