Interface SupportsNetworkSpeedOption<T extends BaseOptions<T>>
-
- All Superinterfaces:
CanSetCapability<T>
,org.openqa.selenium.Capabilities
,java.io.Serializable
- All Known Implementing Classes:
EspressoOptions
,UiAutomator2Options
public interface SupportsNetworkSpeedOption<T extends BaseOptions<T>> extends org.openqa.selenium.Capabilities, CanSetCapability<T>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NETWORK_SPEED_OPTION
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.util.Optional<java.lang.String>
getNetworkSpeed()
Get the desired network speed limit for the emulator.default T
setNetworkSpeed(java.lang.String speed)
Sets the desired network speed limit for the emulator.-
Methods inherited from interface io.appium.java_client.remote.options.CanSetCapability
amend, setCapability
-
-
-
-
Field Detail
-
NETWORK_SPEED_OPTION
static final java.lang.String NETWORK_SPEED_OPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
setNetworkSpeed
default T setNetworkSpeed(java.lang.String speed)
Sets the desired network speed limit for the emulator. It is only applied if the emulator is not running before the test starts. See emulator command line arguments description for more details.- Parameters:
speed
- Speed value.- Returns:
- self instance for chaining.
-
getNetworkSpeed
default java.util.Optional<java.lang.String> getNetworkSpeed()
Get the desired network speed limit for the emulator.- Returns:
- Speed value.
-
-