Table of Contents

Class EmulateNetworkConditionsCommandSettings

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

Activates emulation of network conditions. This command is deprecated in favor of the emulateNetworkConditionsByRule and overrideNetworkState commands, which can be used together to the same effect.

public sealed class EmulateNetworkConditionsCommandSettings : ICommand
Inheritance
EmulateNetworkConditionsCommandSettings
Implements
Inherited Members

Properties

CommandName

Gets the name of the command.

[JsonIgnore]
public string CommandName { get; }

Property Value

string

ConnectionType

Connection type if known.

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

Property Value

ConnectionType?

DownloadThroughput

Maximal aggregated download throughput (bytes/sec). -1 disables download throttling.

[JsonPropertyName("downloadThroughput")]
public double DownloadThroughput { get; set; }

Property Value

double

Latency

Minimum latency from request sent to response headers received (ms).

[JsonPropertyName("latency")]
public double Latency { get; set; }

Property Value

double

Offline

True to emulate internet disconnection.

[JsonPropertyName("offline")]
public bool Offline { get; set; }

Property Value

bool

PacketLoss

WebRTC packet loss (percent, 0-100). 0 disables packet loss emulation, 100 drops all the packets.

[JsonPropertyName("packetLoss")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public double? PacketLoss { get; set; }

Property Value

double?

PacketQueueLength

WebRTC packet queue length (packet). 0 removes any queue length limitations.

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

Property Value

long?

PacketReordering

WebRTC packetReordering feature.

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

Property Value

bool?

UploadThroughput

Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling.

[JsonPropertyName("uploadThroughput")]
public double UploadThroughput { get; set; }

Property Value

double