Start native apps faster with the Composables CLI ->
Function

onDescendants

Returns all the descendants of this node in Depth-First Search order.

onDescendants

Source set: Common
public fun SemanticsNodeInteraction.onDescendants(): SemanticsNodeInteractionCollection

Returns all the descendants of this node in Depth-First Search order.

Example: For the following tree

|-A <- this node
|-B
|-C
|-D
|-E

Returns B, C, D, E