Class EmulateNetworkConditionsByRuleCommandSettings
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
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
Offline
True to emulate internet disconnection.
[JsonPropertyName("offline")]
public bool Offline { get; set; }