Table of Contents

Class OverrideNetworkStateCommandSettings

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

Override the state of navigator.onLine and navigator.connection.

public sealed class OverrideNetworkStateCommandSettings : ICommand
Inheritance
OverrideNetworkStateCommandSettings
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

UploadThroughput

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

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

Property Value

double