Package org.openqa.selenium.chromium
Interface HasNetworkConditions
-
- All Known Implementing Classes:
ChromiumDriver
@Beta public interface HasNetworkConditionsUsed by classes to indicate that they can simulate different network conditions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeleteNetworkConditions()Resets the network conditions to the default settings.ChromiumNetworkConditionsgetNetworkConditions()Gets map of network conditions.voidsetNetworkConditions(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.
-
-