【问题标题】:mobile scroll command is not working in appium 1.5 for iOS application移动滚动命令在 iOS 应用程序的 appium 1.5 中不起作用
【发布时间】:2016-06-13 05:13:27
【问题描述】:

今天我将appium 更新为1.5,除了mobile: scrollTo 命令外,一切运行良好。

el = getattr(driver, 'find_element_by_' + locator_type)(locator_path)
driver.execute_script("mobile: scrollTo", {"element": el.id}) 

此代码不再工作,我收到错误:

WebDriverException:消息:未知命令,所有移动命令 除了滚动已被删除。

谁能帮帮我?

【问题讨论】:

    标签: python ios appium appium-ios python-appium


    【解决方案1】:

    问题已解决

    在 Appium 1.5 中使用此代码

    driver.execute_script("mobile: scroll", {"direction": 'down', 'element': el})
    

    【讨论】:

      猜你喜欢
      • 2020-11-04
      • 2020-12-17
      • 2018-05-31
      • 2018-05-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-28
      相关资源
      最近更新 更多