Interface SupportsUnlockStrategyOption<T extends BaseOptions<T>>
-
- All Superinterfaces:
CanSetCapability<T>
,org.openqa.selenium.Capabilities
,java.io.Serializable
- All Known Implementing Classes:
EspressoOptions
,UiAutomator2Options
public interface SupportsUnlockStrategyOption<T extends BaseOptions<T>> extends org.openqa.selenium.Capabilities, CanSetCapability<T>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
UNLOCK_STRATEGY_OPTION
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.util.Optional<java.lang.String>
getUnlockStrategy()
Get the strategy key.default T
setUnlockStrategy(java.lang.String strategy)
Either 'locksettings' (default) or 'uiautomator'.-
Methods inherited from interface io.appium.java_client.remote.options.CanSetCapability
amend, setCapability
-
-
-
-
Field Detail
-
UNLOCK_STRATEGY_OPTION
static final java.lang.String UNLOCK_STRATEGY_OPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
setUnlockStrategy
default T setUnlockStrategy(java.lang.String strategy)
Either 'locksettings' (default) or 'uiautomator'. Setting it to 'uiautomator' will enforce the driver to avoid using special ADB shortcuts in order to speed up the unlock procedure.- Parameters:
strategy
- The unlock strategy.- Returns:
- self instance for chaining.
-
getUnlockStrategy
default java.util.Optional<java.lang.String> getUnlockStrategy()
Get the strategy key.- Returns:
- Unlock strategy.
-
-