Mobile JSON Wire Protocol
getPageIndex
Mobile JSON Wire Protocol command. More details can be found in the official protocol docs.
attention
This protocol command is deprecated
In Appium 2.0, this method is marked as deprecated and currently has no available alternatives.
Usage
driver.getPageIndex()
Returns
- <string>
pageIndex
: undefined
getNetworkConnection
Mobile JSON Wire Protocol command. More details can be found in the official protocol docs.
Usage
driver.getNetworkConnection()
Returns
- <number>
connectionType
: see https://appium.github.io/appium.io/docs/en/writing-running-appium/other/network-connection/
setNetworkConnection
Mobile JSON Wire Protocol command. More details can be found in the official protocol docs.
Usage
driver.setNetworkConnection(type)
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
driver.touchPerform(actions)
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
driver.multiTouchPerform(actions, elementId)
Parameters
Name | 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) |
receiveAsyncResponse
Mobile JSON Wire Protocol command. More details can be found in the official protocol docs.
Usage
driver.receiveAsyncResponse(status, value)
Parameters
Name | Type | Details |
---|---|---|
status | string | the expected status of the response |
value | string | the expected value of the response |