这是我的 java 代码,但是无论如何也无法针对 ios 应用中的表视图进行下拉刷新或上拉加载数据操作,请大侠帮忙

     public void MultiGestureTest() throws InterruptedException {
          String js_snippet = "mobile: swipe";
//        int startx,starty,endx,endy,duration;
//        System.out.println(js_snippet);
//        driver.swipe(startx=75, starty=400, endx=75, endy=100, duration=800);
          JavascriptExecutor js = (JavascriptExecutor) driver;
          HashMap<String, Double> swipeObject = new HashMap<String, Double>();
          swipeObject.put("startx",75.0);
          swipeObject.put("starty",500.0);
          swipeObject.put("endx",75.0);
          swipeObject.put("endy",0.0);
          swipeObject.put("touchCount",0.5);
          swipeObject.put("duration",800.0);
          js.executeScript(js_snippet, swipeObject);
          System.out.println(js_snippet);
      }


↙↙↙阅读原文可查看相关链接,并与作者交流