🌈 Create new beautiful Compose Gradients with our new wesite ->
Function

onSibling

Returns exactly one sibling of this node.

onSibling

Source set: Common
public fun SemanticsNodeInteraction.onSibling(): SemanticsNodeInteraction

Returns exactly one sibling of this node.

Use this only if this node has exactly one sibling.

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.

Content updated: