Count all elements with the specific resource ID on the scrollable view

Here is the question. How can I count all the elements with the resource ID body_bubble on a scrollable view ? When I use the driver.findElements (By.id ("body_bubble")).size() method, it gets only the elements that are currently in view (visible on the screen).

How can I find all the elements? I know that I can use something like new UiScrollable(new UiSelector()).scrollIntoView , but I can’t wrap my head around it.

Please help me out.!

Screenshot_2|280x500

you cant :-0. you can write only some kind of smart scroll and count e.g. scroll to UP end, count what you see (each el should contain something unique), scroll down and count again unique elements…

PS maybe with Espresso you have a bit more ways.