Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

How can i get Length of "grid_table" element? I have the following REPL tree output: RELP tree outuup

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

like image 931
ichernob Avatar asked Apr 07 '16 15:04

ichernob


1 Answers

To count all direct children for grid_table, use:

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

To count all elements with id 'container' that are descendants of "grid_table", you could use:

app.Query(q => q.Id("grid_table").Descendant().Id("container")).Length
like image 143
Ruud Kobes Avatar answered Oct 18 '22 18:10

Ruud Kobes