Interface SupportsSkipUnlockOption<T extends BaseOptions<T>>
- All Superinterfaces:
CanSetCapability<T>,org.openqa.selenium.Capabilities,Serializable
- All Known Implementing Classes:
EspressoOptions,UiAutomator2Options
public interface SupportsSkipUnlockOption<T extends BaseOptions<T>>
extends org.openqa.selenium.Capabilities, CanSetCapability<T>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGet whether to skip the check for lock screen presence.default TsetSkipUnlock(boolean value) Whether to skip the check for lock screen presence (true).default TSkip the check for lock screen presence.Methods inherited from interface io.appium.java_client.remote.options.CanSetCapability
amend, setCapabilityMethods inherited from interface org.openqa.selenium.Capabilities
asMap, get, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatformName, is, merge, required
-
Field Details
-
SKIP_UNLOCK_OPTION
- See Also:
-
-
Method Details
-
skipUnlock
Skip the check for lock screen presence.- Returns:
- self instance for chaining.
-
setSkipUnlock
Whether to skip the check for lock screen presence (true). By default, UiAutomator2 driver tries to detect if the device's screen is locked before starting the test and to unlock that (which sometimes might be unstable). Note, that this operation takes some time, so it is highly recommended to set this capability to true and disable screen locking on devices under test.- Parameters:
value- Set it to true in order to skip screen unlock checks.- Returns:
- self instance for chaining.
-
doesSkipUnlock
Get whether to skip the check for lock screen presence.- Returns:
- True or false.
-