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

如何使用坐标在手机中刷卡?我正在使用appium,java,java,appium,swipe,Java,Appium,Swipe,下面的代码,我使用了,但没有工作 try{ driverNew.findElementByAndroidUIAutomator("new UiScrollable(new UiSelector().scrollable(true)"+".scrollToEnd(4);"); } catch (Exception e) { System.out.println(e.getMessage()); } 终于得到

下面的代码,我使用了,但没有工作

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

终于得到了工作代码

使用我找到的Appium进行刷卡

TouchAction滑动=新的TouchAction(driverNew)。按(点选项。点(5401824)) .waitAction(waitOptions(of millis(800)).moveTo(PointOption.point(540672)).release().perform()