Issue with identifying end of scrolling

I have a list with elements that can be the same. There is a scroll bar as well.
Appium (and “UI Automator Viewer”) from some reason does not contain object with the scroll bar.

My problem is how to identify that I am getting to the end of list if when I am making page down with swipe
Elements can be the same.

There is nothing unique on those elements? They do not contain any text?

There is some uniqueness in at least one of the elements in different pages but it takes time to get text
from each element and I need many elements because that some are the same. I am searching for a better way by means of time and performance to identify a list state like identifying scroll bar or … some driver state/events ?

Don’t see much alternatives.

If you do it manually, you will identify the end of the list when you scroll down and there is nothing new. So automatically you will probably have to get current attributes of list (just the last visible one if they are unique) and compare with it after a scroll down. When they are the same, you are at the bottom.

1 Like