Skip to content

NetworkConditions

Namespace: PuppeteerSharp

public class NetworkConditions

Options to be used in EmulateNetworkConditionsAsync(NetworkConditions).

Inheritance: object

View source

public const string Fast3G = "Fast 3G"

Key to be used with NetworkConditions.

Value: string

View source

public const string Fast4G = "Fast 4G"

Key to be used with NetworkConditions.

Value: string

View source

public const string Slow3G = "Slow 3G"

Key to be used with NetworkConditions.

Value: string

View source

public const string Slow4G = "Slow 4G"

Key to be used with NetworkConditions.

Value: string

View source

public double? Download { get; set; }

Download speed (bytes/s). If not provided, download throttling is disabled and only the offline mode is emulated.

Value: double?

View source

public double? Latency { get; set; }

Latency (ms). If not provided, no latency is emulated.

Value: double?

View source

public bool Offline { get; set; }

Emulates the offline mode. Shortcut for SetOfflineModeAsync(bool).

Value: bool

View source

public double? Upload { get; set; }

Upload speed (bytes/s). If not provided, upload throttling is disabled and only the offline mode is emulated.

Value: double?

View source

Made with love by Dario Kondratiuk