I am writing a UI test for the Android side of my Xamarin forms application using Xamarin UI Test. I am trying to query for a specific AutomationId which come through as Labels. When I query, app.Query("MyAutomationId"); it returns only the visible elements. I was wondering if there was a way to tack All() onto the query to return all elements visible and non-visible. I have tried many different variations of my query here are two:
app.Query(x => x.Property("Label").Contains("MyAutomationId").All();
Any help would be appreciated. Thank you.