无法使用 java 客户端 7.0 使用 appium 滚动 android 本机应用程序

Unable to scroll android native app with appium using java client 7.0

我无法使用 Appium 垂直滚动 android 应用程序。 我正在使用 java-client 7.0.0 API。 Action.press 不工作

(new TouchAction(driver))
  .press({x: 600, y: 2408})
  .moveTo({x: 348: y: 615})
  .release()
  .perform()

尝试使用以下示例:

/**
 * This method scrolls based upon the passed parameters
 * @author Bill Hileman
 * @param int startx - the starting x position
 * @param int starty - the starting y position
 * @param int endx - the ending x position
 * @param int endy - the ending y position
 */
@SuppressWarnings("rawtypes")
public void scroll(int startx, int starty, int endx, int endy) {

    TouchAction touchAction = new TouchAction(driver);

    touchAction.longPress(PointOption.point(startx, starty))
               .moveTo(PointOption.point(endx, endy))
               .release()
               .perform();

}