appium swipe不能使用和tap不能使用

来源:互联网 发布:mac怎么建文本文件 编辑:程序博客网 时间:2024/05/20 00:49
替换了appium-client5.1版本之后swipe和tap不能使用
swipe可以替换成
  new TouchAction(driver1).press(590,700).moveTo(-350,0).release().perform();   意思是在x=590,y=700的状态下x减少350,y不变,相当于向左滑动350
tap可以替换成:
new TouchAction(driver1).press(590,700).perform();   点击x=590,y=700的坐标



原创粉丝点击