---
title: "onSiblings"
description: "Returns all siblings of this node.

 For the following tree

```
|-A |-B1 |-B2 <- this node |-B3
Returns B1, B3
```"
type: "function"
---

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


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


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


Returns all siblings of this node.

 For the following tree

```
|-A |-B1 |-B2 <- this node |-B3
Returns B1, B3
```



