Query elements that are not visible on screen

Is there anyway to query my application under test for all elements with a certain 'AutomationId' or Label text, including those not currently visible.
I have a list of items where I want to query all items in that list, but failing to do so.
I have tried the following, but it only returns the visible elements on screen or nothing at all:

var dateTimeQuery = _app.Query(x => x.Marked("ViewingDateId").All());
var dateTimeQuery = _app.Query(x => x.All("ViewingDateId"));
var dateTimeQuery = _app.Query(x => x.All("ViewingDateId").All());
Sign In or Register to comment.