Mobile JSON Wire Protocol
getContext
Mobile 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'
switchContext
Mobile JSON Wire Protocol command. More details can be found in the official protocol docs.
Usage
Parameters
| Name | Type | Details |
|---|---|---|
| name | string | a string representing an available context |
getContexts
Mobile 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'
getPageIndex
Mobile JSON Wire Protocol command. More details can be found in the official protocol docs.
Usage
Returns
- <string> pageIndex:
getNetworkConnection
Mobile JSON Wire Protocol command. More details can be found in the official protocol docs.
Usage
Returns
- <number> connectionType: see http:
setNetworkConnection
Mobile JSON Wire Protocol command. More details can be found in the official protocol docs.
Usage
Parameters
| Name | Type | Details |
|---|---|---|
| type | number | a bit mask that should be translated to an integer value when serialized |
touchPerform
Mobile JSON Wire Protocol command. More details can be found in the official protocol docs.
Usage
Parameters
| Name | Type | Details |
|---|---|---|
| actions | object[] | a list of objects, each of which represents an input source and its associated actions |
multiTouchPerform
Mobile JSON Wire Protocol command. More details can be found in the official protocol docs.
Usage
Parameters
| Name | Type | Details |
|---|---|---|
| actions | object[] | a list of objects, each of which represents an input source and its associated actions |
| elementIdoptional | object[] | the id of an element returned in a previous call to Find Element(s) |
receiveAsyncResponse
Mobile JSON Wire Protocol command. More details can be found in the official protocol docs.
Usage
Parameters
| Name | Type | Details |
|---|---|---|
| status | string | the expected status of the response |
| value | string | the expected value of the response |