-
TouchAction 用法
-
TouchAction 可用的事件:
- Press(手势)按下
- release (手势)抬起,释放
- moveTo 移动
- tap 点击
- wait 等待
- longPress 长按
- cancel 取消
- perform 执行
滑动
- 通过坐标滑动
touchAction.longPress(PointOption.point(200,600)).moveTo(PointOption.point(500,1200)).release().perform();
driver.manage().window().getSize().height
driver.manage().window().getSize().width