是否有与 Android uiAutomator 中的 scrollIntoView 方法等效的相反方向?

问题描述

我需要从下到上滚动直到找到某些文本,但我无法理解如何实现这一点。我阅读了官方文档,但指定了这样的东西。我错过了什么吗?

Docs

像这样:

MobileElement element = (MobileElement) driver.findElement(MobileBy.AndroidUIAutomator(
        "new UiScrollable(new UiSelector()" +
                ".scrollIntoViewBackwards(new UiSelector().text(\"" + country + "\"))"));
//notice the scrollIntoViewBackwards method I have in mind

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)