Table of Contents

Class EmulateNetworkConditionsByRuleCommandSettings

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

Activates emulation of network conditions for individual requests using URL match patterns. Unlike the deprecated Network.emulateNetworkConditions this method does not affect navigator state. Use Network.overrideNetworkState to explicitly modify navigator behavior.

public sealed class EmulateNetworkConditionsByRuleCommandSettings : ICommand
Inheritance
EmulateNetworkConditionsByRuleCommandSettings
Implements
Inherited Members

Properties

CommandName

Gets the name of the command.

[JsonIgnore]
public string CommandName { get; }

Property Value

string

MatchedNetworkConditions

Configure conditions for matching requests. If multiple entries match a request, the first entry wins. Global conditions can be configured by leaving the urlPattern for the conditions empty. These global conditions are also applied for throttling of p2p connections.

[JsonPropertyName("matchedNetworkConditions")]
public NetworkConditions[] MatchedNetworkConditions { get; set; }

Property Value

NetworkConditions[]

Offline

True to emulate internet disconnection.

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

Property Value

bool