Appium
getContext
Appium command. More details can be found in the official protocol docs.
Usage
driver.getContext()
Returns
- <Context>
context
: a string representing the current context or null representing 'no context'
switchContext
Appium command. More details can be found in the official protocol docs.
Usage
driver.switchContext(name)
Parameters
Name | Type | Details |
---|---|---|
name | string | a string representing an available context |
getContexts
Appium command. More details can be found in the official protocol docs.
Usage
driver.getContexts()
Returns
- <Context[]>
contexts
: an array of strings representing available contexts, e.g. 'WEBVIEW', or 'NATIVE'
shake
Perform a shake action on the device.
Appium command. More details can be found in the official protocol docs.
Usage
driver.shake()
Support
lock
Lock the device.
Appium command. More details can be found in the official protocol docs.
Usage
driver.lock(seconds)
Parameters
Name | Type | Details |
---|---|---|
seconds optional | number | how long to lock the screen (iOS only) |
Support
unlock
Unlock the device.
Appium command. More details can be found in the official protocol docs.
Usage
driver.unlock()
Support