移动端 JSON Wire 协议
getPageIndex
移动端 JSON Wire 协议命令。更多详情可以在官方协议文档中找到。
警告
此协议命令已被弃用
在 Appium 2.0 中,此方法被标记为已弃用,目前没有可用的替代方法。
用法
driver.getPageIndex()
返回值
- <string>
getNetworkConnection
移动端 JSON Wire 协议命令。更多详情可以在官方协议文档中找到。
用法
driver.getNetworkConnection()
返回值
- <number>
connectionType
: 参见 https://appium.github.io/appium.io/docs/en/writing-running-appium/other/network-connection/
setNetworkConnection
移动端 JSON Wire 协议命令。更多详情可以在官方协议文档中找到。
用法
driver.setNetworkConnection(type)
参数
名称 | 类型 | 详情 |
---|---|---|
type | number | 一个位掩码,序列化时应转换为整数值 |
touchPerform
移动端 JSON Wire 协议命令。更多详情可以在官方协议文档中找到。
用法
driver.touchPerform(actions)
参数
名称 | 类型 | 详情 |
---|---|---|
actions | object[] |