[英]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.