Start native apps faster with the Composables CLI ->
Function

onAncestors

Returns all the ancestors of this node.

onAncestors

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

Returns all the ancestors of this node.

Example: For the following tree

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

Returns B, A