长按元素(长按包含了释放
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction#操作元素导包
TouchAction(driver).long_press(元素).wait(5000).release().perform()
点击元素
1) touch.tap(ele)#点击
touch.perform()#执行命令
2) touch.press(ele)#按下
touch.release()#释放
touch.perform()#运行
滑动界面
touch.press(x=888,y=1166)
#有时代码运行太快 android底层事件监控会认为误触,导致不执行,
#加 touch.wait(1000)
touch.move_to(x=159,y=1166)
touch.release()
touch.perform()#执行