繁体   English   中英

如何使用坐标在手机中滑动? 我正在使用appium,java

[英]How to swipe in Mobile using coordinates ? i am using appium ,java

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

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

终于得到了工作代码

使用 Appium 我发现协调滑动

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM