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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.