Unable to fetch the all user list using xpath or By ID. Please help

HI All,

Please help to find all users, I am unable to find the same using below ID and xpath which I created.

List list = driver.findElements(By.id(“com.intuit.qbes.mobilescanner:id/user_listView”));

List list = driver.findElements(By.xpath("//android.support.v7.widget.RecyclerView[@resource-id=‘com.intuit.qbes.mobilescanner:id/user_listView’]"));

In both the above case, ia m getting only one user out of listed one.

anyone p
lease help asap…

we need more details. e.g. share your pageSource().

Didint get u …
do u meant this page source code ?


and put is here - https://gist.github.com/ and give us link to it

we do not see your page structure = we cannot help you

I have placed the page source …please let me know if u need more info.

there is no “vendor” text in your source. maybe you got it too earlier before data appeared. wait some time before making pageSource.

although there is "resource-id=“com.intuit.qbes.mobilescanner:id/user_name” items in your source and thus maybe that is what your are looking for:

        List<AndroidElement> list = driver.findElements(MobileBy.id("user_name"));

Thanks let me try with this …and share here the complete source code

Thanks a lot …it worked …:slight_smile: