Xamarin.UITest REPL. How to get a list of objects from a ListView element?

How can I get the length of the grid_table element? I have the following output from the REPL tree: RELP tree output

Currently, I can only get the "grid_table" element, but not its "container" elements or at least the "grid_table" Length. Is it possible? Or can I only get items using the "container" Id?

+4
source share
1 answer

To count all direct children for grid_table, use:

app.Query(q => q.Id("grid_table").Child()).Length

"", "grid_table", :

app.Query(q => q.Id("grid_table").Descendant().Id("container")).Length
+4

All Articles