Xamarin.UITest:How to retrieve invisible elements from list without scroll on pag in Xamarin.UITest?

AnvekarAnvekar INMember
edited October 2017 in General
I have a list of 20 elements and when I use app.Query on the page, Xamarin.UITest gives me only 3 elements as only 3 elements are visible in UI. How can I retrieve all 20 elements from the list inside of my UITest? Without scrolling


  • JimBennettJimBennett GBXamarin Team, Insider, University, Developer Group Leader ✭✭✭✭

    You can't.

    Controls like UITableView and RecyclerView don't create the controls for items that are not on screen, so even if there was a way to query for items off screen, those controls won't exist. The only way is to scroll, if you are trying to validate the at the list is correct.

Sign In or Register to comment.