Robot Framework-Appium滑动/向下滚动不执行滑动/滚动操作

问题描述 投票:0回答:2

我正在尝试对正在测试的应用进行向上滑动操作,以下为代码:

Test for Navigation to Directory
    run keyword and continue on failure  Tap on Bottom Navigation icon  Directory
    run keyword and continue on failure     wait until page contains  Police
#   swipe by percent    50     50     50    70  2000
#   Swipe By Direction  up
    swipe   100 700 100 1000    2000
#   scroll down     xpath=/hierarchy/android.widget.FrameLayout/iveLayout/android.view.ViewGroup/.....
    sleep  2s
    page should contain text  Ticketing

我们可以看到,我尝试了Appium Library中的几乎所有方法来触发滑动,但没有任何效果。屏幕保持不变,仅在顶部显示图标,并且不会滚动到初始屏幕下方的任何图标。

此外,尽管keyword documentation中提到,按方向轻扫也不会被识别为关键字

[我的测试设备是带有Android 9的Samsung Note 8。有什么方法可以触发向上滑动动作吗?

android appium robotframework node-modules appium-android
2个回答
0
投票
swipe by percent 50 50 50 70 2000
© www.soinside.com 2019 - 2024. All rights reserved.