【问题标题】:How to swipe in Mobile using coordinates ? i am using appium ,java如何使用坐标在手机中滑动?我正在使用appium,java
【发布时间】:2021-08-02 10:27:31
【问题描述】:

下面的代码,我用过但是没用

try{
     driverNew.findElementByAndroidUIAutomator("new UiScrollable(new
     UiSelector().scrollable(true)"+".scrollToEnd(4);");
     } catch (Exception e) {
     System.out.println(e.getMessage());
     }

【问题讨论】:

    标签: java appium swipe


    【解决方案1】:

    终于得到了工作代码

    使用 Appium 我发现协调滑动

    TouchAction 滑动 = new TouchAction(driverNew).press(PointOption.point(540, 1824)) .waitAction(waitOptions(ofMillis(800))).moveTo(PointOption.point(540, 672)).release().perform();

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-11-29
      • 2020-06-25
      • 2020-01-25
      • 2014-06-13
      • 1970-01-01
      • 2021-02-28
      • 2017-02-07
      • 1970-01-01
      相关资源
      最近更新 更多