---
title: "onDescendants"
description: "Returns all the descendants of this node in Depth-First Search order."
type: "function"
---
## API Reference

### onDescendants

> Source set: Common

```kotlin
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
