Appium触控滑动

1、导入appium.webdriver.common.touch_action import TouchAction

2、使用方法  TouchAction(driver).press(x=xx,y=xx).move_to(x=xx,y=xx).release().perform()

TouchAction

规范中的可用事件有:
   * 短按 (press)  * 释放 (release)  * 移动到 (moveTo)  * 点击 (tap)
   * 等待 (wait)  * 长按 (long_press)  * 取消 (cancel)
  * 执行 (perform)

 

posted @ 2021-05-07 10:54  Shellyl  阅读(84)  评论(0)    收藏  举报