【发布时间】:2020-11-06 16:30:22
【问题描述】:
有没有办法使用 adb 命令执行拖放操作。
对于 appium,我们是这样做的: ''' action.longPress(ele1).moveTo(ele2).release().perform(); '''
我想使用 adb 命令为 android 执行此操作。
【问题讨论】:
有没有办法使用 adb 命令执行拖放操作。
对于 appium,我们是这样做的: ''' action.longPress(ele1).moveTo(ele2).release().perform(); '''
我想使用 adb 命令为 android 执行此操作。
【问题讨论】:
使用以下命令:
adb shell input draganddrop x1 y1 x2 y2
如果连接了多个设备,请使用:
adb -s serialno shell input draganddrop x1 y1 x2 y2
【讨论】: