Package org.openqa.selenium.chromium
Interface HasNetworkConditions
- All Known Implementing Classes:
ChromeDriver
,ChromiumDriver
,EdgeDriver
Used by classes to indicate that they can simulate different network conditions.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Resets the network conditions to the default settings.Gets map of network conditions.void
setNetworkConditions
(ChromiumNetworkConditions networkConditions) Set network limitations
-
Method Details
-
getNetworkConditions
ChromiumNetworkConditions getNetworkConditions()Gets map of network conditions. These have to be set before they can be retrieved.- Returns:
- the current network condition values.
-
setNetworkConditions
Set network limitations- Parameters:
networkConditions
- object containing valid network condition settings.
-
deleteNetworkConditions
void deleteNetworkConditions()Resets the network conditions to the default settings.
-