How do I count the number of similar MobileElements using UiScrollable?

Hi,

I’m using Appium with Android. In my application, there are multiple FrameLayouts available with same resource id property and we need to find those elements by scroll operation.

How do I count number of such of Elements with scroll action? I used below code snippet, but it showing only the count of visible elements not all.

System.out.println(driver.findElements(By.id(“com.sbit.car:id/cvNewCarItem”)).size());

its true. you can’t see/count objects outside of screen with Android.