Android - Interacting with elements not in view

hi people,

i didnt find definite answer for this, but i’m facing problems with Appium and interaction with elements which are not in the view (need to be scrolled to).
i’m testing against Android.
my problem is that i have many tests which generate dynamic data and sometimes i need to COUNT elements on the screen but using findElements method(s) i get only the elements in view.
is this a limitation? i will need to implement a complex scrolling mechanism to handle overlapping elements in view in order to count them?

thanks,
Roy.

i will need to implement a complex scrolling mechanism to handle overlapping elements in view in order to count them?

Yes. And it’s extremely annoying. :smile:

I haven’t fully fleshed out my code yet to share it but you can get some general ideas here: