【问题标题】:Android - ADB command to perform Drag and drop action?Android - ADB 命令执行拖放操作?
【发布时间】:2020-11-06 16:30:22
【问题描述】:

有没有办法使用 adb 命令执行拖放操作。

对于 appium,我们是这样做的: ''' action.longPress(ele1).moveTo(ele2).release().perform(); '''

我想使用 adb 命令为 android 执行此操作。

【问题讨论】:

    标签: android adb


    【解决方案1】:

    使用以下命令:

    adb shell input draganddrop x1 y1 x2 y2
    

    如果连接了多个设备,请使用:

    adb -s serialno shell input draganddrop x1 y1 x2 y2
    

    【讨论】:

      猜你喜欢
      • 2014-12-05
      • 2018-08-04
      • 1970-01-01
      • 2012-06-23
      • 1970-01-01
      • 2016-05-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多