还未发布过话题
  • 求大神指点呀,我通过 java 代码无法实现 ios 的 app 引导页面的滑动,用的是 swipe
    JavascriptExecutor js = (JavascriptExecutor) driver;

    HashMap swipeObject = new HashMap();

    swipeObject.put("startX", startX);

    swipeObject.put("startY", startY);

    swipeObject.put("endX", endX);

    swipebject.put("endY", endY);

    swipeObject.put("duration", duration);

    swipeObject.put("element", Double.valueOf(((RemoteWebElement) element).getId()));

    js.executeScript("mobile: swipe", swipeObject);
    这样也不能进行滑动,求指点呀