-
TouchAction 用法
-
TouchAction 可用的事件:
- Press(手勢)按下
- release (手勢)抬起,釋放
- moveTo 移動
- tap 點(diǎn)擊
- wait 等待
- longPress 長按
- cancel 取消
- perform 執(zhí)行
滑動
- 通過坐標(biāo)滑動
touchAction.longPress(PointOption.point(200,600)).moveTo(PointOption.point(500,1200)).release().perform();
driver.manage().window().getSize().height
driver.manage().window().getSize().width