簡體   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