移动滚动命令在适用于 iOS 的应用程序 appium 1.5 中不起作用



今天我更新了我的appium1.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})

最新更新