메인 컨텐츠로 건너뛰기

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​

await driver.getPageIndex()

Returns​

  • <string>

getNetworkConnection​

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

주의

This protocol command is deprecated
For Appium Android automation, use driver.execute('mobile: getConnectivity', { ... }) instead

Usage​

await driver.getNetworkConnection()

Returns​


setNetworkConnection​

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

주의

This protocol command is deprecated
For Appium Android automation, use driver.execute('mobile: setConnectivity', { ... }) instead

Usage​

await 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.

주의

This protocol command is deprecated
For Appium, use driver.performActions(...) instead

Usage​

await 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.

주의

This protocol command is deprecated
For Appium, use driver.performActions(...) instead

Usage​

await 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.

주의

This protocol command is deprecated
For Appium, use driver.executeAsyncScript(...) instead

Usage​

await 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