【问题标题】:scroll down in appium robot framework在 appium 机器人框架中向下滚动
【发布时间】:2018-08-21 05:38:16
【问题描述】:

我在appium中使用向下滚动时遇到问题。

Scroll Down       xpath=//android.view.ViewGroup/android.widget.FrameLayout[2]/android.widget.LinearLayout/android.widget.ScrollView/android.widget.LinearLayout/android.widget.LinearLayout[2]/android.widget.LinearLayout/android.widget.TextView

但我得到了错误的响应

VerifyPayType                                                         | FAIL |
WebDriverException: Message: Unknown mobile command "scroll". Only shell commands are supported.

谁能建议我通过另一种方法在 appuim 中向下滚动?

【问题讨论】:

    标签: automated-tests appium robotframework appium-android appium-desktop


    【解决方案1】:

    您可以使用 Scroll Locator 2 Locator 1。

    例子:

    Scroll xpath=//*[@content-desc='Phone'] xpath=//*[@content-desc='Hangouts']
    

    注意:参数 1 是参数 2 之下的元素。

    【讨论】:

      猜你喜欢
      • 2014-09-15
      • 2015-11-04
      • 2021-04-08
      • 2017-10-26
      • 2018-12-16
      • 2020-06-17
      • 2017-06-17
      • 2016-05-16
      • 2019-02-18
      相关资源
      最近更新 更多