在执行“ child_by_text”搜索时,如何从uiautomator python包装器中调用setAsHorizo​​ntalList?

问题描述

我需要为正在执行的项目的 setAsHorizo​​ntalList()命令提供支持 否则,使用“ child_by_text”时,它无法正确地水平滚动应用程序屏幕。

我找不到如何使用uiautomator python包装器执行此操作。 有谁知道该怎么做或有建议的解决方法

我在应用程序屏幕上并排有很多项目,我需要向右滚动屏幕才能看到所有项目。

不幸的是,使用“ child_by_text”滚动认为垂直滚动,我找不到切换它的方法(本该使用 setAsHorizo​​ntalList )。

样本:

foundItem = device(resourceIdMatches="*.horizontal_page_list")
.child_by_text(" - ",allow_scroll_search=True,className="android.widget.RelativeLayout")

任何帮助将不胜感激。

解决方法

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

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

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