1. 程式人生 > >Appium模擬滑動軌跡(如手勢解鎖)

Appium模擬滑動軌跡(如手勢解鎖)

final TouchAction gesture = new TouchAction(driver).press(startX, stratY)
          .moveTo(startX, stratY + height)
          .moveTo(startX, stratY + height + height)
          .moveTo(startX + width, stratY + height + height).release();
      gesture.perform();