Mobile JSON Wire Protocol
#
getContextMobile JSON Wire Protocol command. More details can be found in the official protocol docs.
#
Usage#
Returns- <string|null> context: a string representing the current context or null representing 'no context'
#
switchContextMobile JSON Wire Protocol command. More details can be found in the official protocol docs.
#
Usage#
ParametersName | Type | Details |
---|---|---|
name | string | a string representing an available context |
#
getContextsMobile JSON Wire Protocol command. More details can be found in the official protocol docs.
#
Usage#
Returns- <string[]> contexts: an array of strings representing available contexts, e.g. 'WEBVIEW', or 'NATIVE'
#
getPageIndexMobile JSON Wire Protocol command. More details can be found in the official protocol docs.
#
Usage#
Returns- <string> pageIndex:
#
getNetworkConnectionMobile JSON Wire Protocol command. More details can be found in the official protocol docs.
#
Usage#
Returns- <number> connectionType: see http://appium.io/docs/en/writing-running-appium/other/network-connection/
#
setNetworkConnectionMobile JSON Wire Protocol command. More details can be found in the official protocol docs.
#
Usage#
ParametersName | Type | Details |
---|---|---|
type | number | a bit mask that should be translated to an integer value when serialized |
#
touchPerformMobile JSON Wire Protocol command. More details can be found in the official protocol docs.
#
Usage#
ParametersName | Type | Details |
---|---|---|
actions | object[] | a list of objects, each of which represents an input source and its associated actions |
#
multiTouchPerformMobile JSON Wire Protocol command. More details can be found in the official protocol docs.
#
Usage#
ParametersName | Type | Details |
---|---|---|
actions | object[] | a list of objects, each of which represents an input source and its associated actions |
elementId optional | object[] | the id of an element returned in a previous call to Find Element(s) |
#
receiveAsyncResponseMobile JSON Wire Protocol command. More details can be found in the official protocol docs.
#
Usage#
ParametersName | Type | Details |
---|---|---|
status | string | the expected status of the response |
value | string | the expected value of the response |