رفتن به محتوای اصلی

Mobile JSON Wire Protocol

getPageIndex

Mobile JSON Wire Protocol command. More details can be found in the official protocol docs.

احتیاط

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

setNetworkConnection

Mobile JSON Wire Protocol command. More details can be found in the official protocol docs.

Usage
driver.setNetworkConnection(type)
Parameters
NameTypeDetails
typenumbera 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
NameTypeDetails
actionsobject[]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
NameTypeDetails
actionsobject[]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
NameTypeDetails
statusstringthe expected status of the response
valuestringthe expected value of the response

Welcome! How can I help?

WebdriverIO AI Copilot