---
title: "onChildren"
description: "Returns children of this node at the moment of invocation, it only captures nodes that are
currently present in the semantic tree.

This is especially relevant for lazy layouts like 'LazyColumn' or 'LazyRow' where only a subset
of items are currently composed and exist in the tree. Therefore, this function will only return
those currently composed items, not all the items in the backing data set."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
@CheckResult
fun SemanticsNodeInteraction.onChildren(): SemanticsNodeInteractionCollection
```


Returns children of this node at the moment of invocation, it only captures nodes that are
currently present in the semantic tree.

This is especially relevant for lazy layouts like 'LazyColumn' or 'LazyRow' where only a subset
of items are currently composed and exist in the tree. Therefore, this function will only return
those currently composed items, not all the items in the backing data set.



