Function

onParent

Returns a parent of this node.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

onParent

Common
@CheckResult
fun SemanticsNodeInteraction.onParent(): SemanticsNodeInteraction

Returns a parent of this node.

Any subsequent operation on its result will expect exactly one element found (unless SemanticsNodeInteraction.assertDoesNotExist is used) and will throw AssertionError if none or more than one element is found.