Package org.openqa.selenium.chromium
Interface HasNetworkConditions
-
- All Known Implementing Classes:
ChromiumDriver
@Beta public interface HasNetworkConditions
Used by classes to indicate that they can simulate different network conditions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
deleteNetworkConditions()
Resets the network conditions to the default settings.ChromiumNetworkConditions
getNetworkConditions()
Gets map of network conditions.void
setNetworkConditions(ChromiumNetworkConditions networkConditions)
Set network limitations
-
-
-
Method Detail
-
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
void setNetworkConditions(ChromiumNetworkConditions networkConditions)
Set network limitations- Parameters:
networkConditions
- object containing valid network condition settings.
-
deleteNetworkConditions
void deleteNetworkConditions()
Resets the network conditions to the default settings.
-
-