iOS 应用程序的移动滚动命令在 appium 1.5 中不起作用
mobile scroll command is not working in appium 1.5 for iOS application
今天我将 appium
更新为 1.5
除了 mobile: scrollTo
命令外,其他一切都 运行 正常。
el = getattr(driver, 'find_element_by_' + locator_type)(locator_path)
driver.execute_script("mobile: scrollTo", {"element": el.id})
此代码不再有效,我收到错误消息:
WebDriverException: Message: Unknown command, all the mobile commands
except scroll have been removed.
有人能帮帮我吗?
问题已解决
在 Appium 1.5 中使用此代码
driver.execute_script("mobile: scroll", {"direction": 'down', 'element': el})
今天我将 appium
更新为 1.5
除了 mobile: scrollTo
命令外,其他一切都 运行 正常。
el = getattr(driver, 'find_element_by_' + locator_type)(locator_path)
driver.execute_script("mobile: scrollTo", {"element": el.id})
此代码不再有效,我收到错误消息:
WebDriverException: Message: Unknown command, all the mobile commands except scroll have been removed.
有人能帮帮我吗?
问题已解决
在 Appium 1.5 中使用此代码
driver.execute_script("mobile: scroll", {"direction": 'down', 'element': el})