Class NetworkConditions
java.lang.Object
org.openqa.selenium.devtools.v142.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).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/). 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
WebRTC packet loss (percent, 0-100). 0 disables packet loss emulation, 100 drops all the packets. -
getPacketQueueLength
WebRTC packet queue length (packet). 0 removes any queue length limitations. -
getPacketReordering
WebRTC packetReordering feature.
-