Table of Contents

Class EnableCommandSettings

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

Enables network tracking, network events will now be delivered to the client.

public sealed class EnableCommandSettings : ICommand
Inheritance
EnableCommandSettings
Implements
Inherited Members

Properties

CommandName

Gets the name of the command.

[JsonIgnore]
public string CommandName { get; }

Property Value

string

EnableDurableMessages

Enable storing response bodies outside of renderer, so that these survive a cross-process navigation. Requires maxTotalBufferSize to be set. Currently defaults to false. This field is being deprecated in favor of the dedicated configureDurableMessages command, due to the possibility of deadlocks when awaiting Network.enable before issuing Runtime.runIfWaitingForDebugger.

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

Property Value

bool?

MaxPostDataSize

Longest post body size (in bytes) that would be included in requestWillBeSent notification

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

Property Value

long?

MaxResourceBufferSize

Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc).

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

Property Value

long?

MaxTotalBufferSize

Buffer size in bytes to use when preserving network payloads (XHRs, etc). This is the maximum number of bytes that will be collected by this DevTools session.

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

Property Value

long?

ReportDirectSocketTraffic

Whether DirectSocket chunk send/receive events should be reported.

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

Property Value

bool?