今天我更新了我的appium
,1.5
除了mobile: scrollTo
命令之外,一切运行正常。
el = getattr(driver, 'find_element_by_' + locator_type)(locator_path)
driver.execute_script("mobile: scrollTo", {"element": el.id})
此代码不再有效,我收到错误:
网页驱动程序异常:消息:未知命令,所有移动命令 除了滚动已被删除。
谁能帮我?
问题已解决
在 Appium 1.5 中使用此代码
driver.execute_script("mobile: scroll", {"direction": 'down', 'element': el})