Appium
getLogTypes
Get available log types.
Appium command. More details can be found in the official protocol docs.
Usage
driver.getLogTypes()
Returns
- <String[]>
logTypes
: The list of available log types, example: browser, driver.
getLogs
Get the log for a given log type. Log buffer is reset after each request.
Appium command. More details can be found in the official protocol docs.
Usage
driver.getLogs(type)
Parameters
Name | Type | Details |
---|---|---|
type | string | the log type |
Returns
- <Object[]>
logs
: The list of log entries.
getSession
Retrieve the capabilities of the current session.
Appium command. More details can be found in the official protocol docs.
This protocol command is deprecated
Use getAppiumSessionCapabilities
instead
Usage
driver.getSession()
Returns
- <Object>
capabilities
: An object describing the session's capabilities.
getAppiumContext
Appium command. More details can be found in the official protocol docs.
Usage
driver.getAppiumContext()
Returns
- <Context>
context
: a string representing the current context or null representing 'no context'
switchAppiumContext
Appium command. More details can be found in the official protocol docs.
Usage
driver.switchAppiumContext(name)
Parameters
Name | Type | Details |
---|---|---|
name | string | a string representing an available context |
getAppiumContexts
Appium command. More details can be found in the official protocol docs.
Usage
driver.getAppiumContexts()
Returns
- <Context[]>
contexts
: an array of strings representing available contexts, e.g. 'WEBVIEW', or 'NATIVE'
getAppiumCommands
Retrieve the endpoints and BiDi commands supported in the current session.
Appium command. More details can be found in the official protocol docs.
Usage
driver.getAppiumCommands()
Returns
- <Object>
commands
: Supported endpoints and BiDi commands, each grouped into common, driver-specific, and plugin-specific endpoints/commands.
getAppiumExtensions
Retrieve the extension commands supported in the current session.
Appium command. More details can be found in the official protocol docs.
Usage
driver.getAppiumExtensions()
Returns
- <Object>
commands
: Supported extension commands, grouped into driver-specific and plugin-specific commands.
getAppiumSessionCapabilities
Retrieve the capabilities of the current session.
Appium command. More details can be found in the official protocol docs.
Usage
driver.getAppiumSessionCapabilities()
Returns
- <Object>
capabilities
: An object describing the session's capabilities.
shake
Perform a shake action on the device.
Appium command. More details can be found in the official protocol docs.