Class NetworkConditions
java.lang.Object
org.openqa.selenium.devtools.v150.network.model.NetworkConditions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConnection type if known.Maximal aggregated download throughput (bytes/sec).Minimum latency from request sent to response headers received (ms).True to emulate internet disconnection.WebRTC packet loss (percent, 0-100).WebRTC packet queue length (packet).WebRTC packetReordering feature.Maximal aggregated upload throughput (bytes/sec).Only matching requests will be affected by these conditions.
-
Constructor Details
-
NetworkConditions
-
-
Method Details
-
getUrlPattern
Only matching requests will be affected by these conditions. Patterns use the URLPattern constructor string syntax (https://urlpattern.spec.whatwg.org/) and must be absolute. If the pattern is empty, all requests are matched (including p2p connections). -
getLatency
Minimum latency from request sent to response headers received (ms). -
getDownloadThroughput
Maximal aggregated download throughput (bytes/sec). -1 disables download throttling. -
getUploadThroughput
Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling. -
getConnectionType
Connection type if known. -
getPacketLoss
-
getPacketQueueLength
-
getPacketReordering
-
getOffline
-