from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
desired_caps = {}
...
driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)

#查找clickable是true,scrollable是false的节点
el = driver.find_elements_by_android_uiautomator('new UiSelector().clickable(true).scrollable(false)')

#拖动
action = TouchAction(driver)
action.press(None,80,250).move_to(None,80,100).release().perform()

driver.quit()


↙↙↙阅读原文可查看相关链接,并与作者交流