Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot figure out how to scroll right or left when using 'child_by_text' and there doesn't seem to be support for setAsHorizontalList() #293

Open
brettnolan opened this issue Sep 2, 2020 · 0 comments

Comments

@brettnolan
Copy link

brettnolan commented Sep 2, 2020

I need support for the setAsHorizontalList() command for a project I am doing
Otherwise, it is not properly scrolling an app screen horizontally when using 'child_by_text'.
Does anyone have a fix or a workaround I can use?

I have a number of items on the app screen side by side and I need to scroll the screen to the right to see them all.
Unfortunately scrolling with 'child_by_text' defaults to vertical scrolling and I cannot find a way to switch it (would have used setAsHorizontalList).

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

Any help would be greatly appreciated.

@brettnolan brettnolan changed the title Cannot scroll tofigure out how to scroll right or left when using 'child_by_text' and there doesn't seem to be support for setAsHorizontalList() Cannot figure out how to scroll right or left when using 'child_by_text' and there doesn't seem to be support for setAsHorizontalList() Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant