As you can see in the attached image, we have an order receipt consisting of a list of items inside recycler view and the receipt can contain any number of items but we don’t have any unique identifier to distinguish the items in the list, in the attached image you can see class, resource-id is same for all the items in the receipt. So when we scroll the list, duplicate items are fetched again, as we don’t have any unique identifier to check if that particular item is fetched already from DOM or not.
So how can we check if that particular item is fetched already from DOM or not when we scroll the list.
REQUIREMENT:- We want to fetch the items from the receipt just once(no same receipt data should be fetched twice)
So how can we achieve the same using Appium?