unlock
Unlock the device screen.
Note: Falls back to the deprecated Appium 2 protocol endpoint if the driver does not support the
mobile:execute method.
Usage
browser.unlock({ strategy, timeoutMs, unlockKey, unlockType })
Parameters
| Name | Type | Details |
|---|---|---|
optionsoptional | object | Unlock options (Android only) |
options.strategyoptional | string | The unlock strategy to use. Accepted values: 'locksettings' (default) or 'uiautomator'. ANDROID-ONLY |
options.timeoutMsoptional | number | The timeout in milliseconds to wait for the unlock to complete. Default is 2000. ANDROID-ONLY |
options.unlockKeyoptional | string | The PIN, password, or pattern to use for unlocking. Required when the device has a PIN/password lock. ANDROID-ONLY |
options.unlockTypeoptional | string | The type of lock mechanism on the device (e.g. 'pin', 'password', 'pattern'). ANDROID-ONLY |