我在appium中使用python进行了移动自动化,但在继续浏览页面时一直给我一个错误。除抄袭页面外,其他一切正常
enter code here
` actions = TouchAction(driver)
actions.scroll_from_element(element, 10, 100)
actions.scroll(10, 100)
actions.perform()
AttributeError:“ TouchAction”对象没有属性“ scroll_from_element”
答案 0 :(得分:0)
将TouchAction
更改为TouchActions
from selenium import webdriver
action = webdriver.TouchActions(driver)
action.scroll_from_element(year, 0, 0).release(0, 10).perform()