Mobile JSON Wire Protocol
getContext
Mobile JSON Wire Protocol command. More details can be found in the official protocol docs.
Usage
browser.getContext()
switchContext
Mobile JSON Wire Protocol command. More details can be found in the official protocol docs.
Usage
browser.switchContext(context)
Parameters
Param | Type | Details |
---|---|---|
context | string | a string representing an available context |
getContexts
Mobile JSON Wire Protocol command. More details can be found in the official protocol docs.
Usage
browser.getContexts()
getPageIndex
Mobile JSON Wire Protocol command. More details can be found in the official protocol docs.
Usage
browser.getPageIndex()
getNetworkConnection
Mobile JSON Wire Protocol command. More details can be found in the official protocol docs.
Usage
browser.getNetworkConnection()
setNetworkConnection
Mobile JSON Wire Protocol command. More details can be found in the official protocol docs.
Usage
browser.setNetworkConnection(connectionType)
Parameters
Param | Type | Details |
---|---|---|
connectionType | 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
browser.touchPerform(actions)
Parameters
Param | 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
browser.multiTouchPerform(actions, elementId)
Parameters
Param | 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
browser.receiveAsyncResponse(status, value)
Parameters
Param | Type | Details |
---|---|---|
status | string | the expected status of the response |
value | string | the expected value of the response |