How can i get Length of "grid_table" element? I have the following REPL tree output:
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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With