> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bringits.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Wait For DOM Element

> Wait for specific DOM elements to appear in the browser

The Wait For DOM Element command (Command Type: 6) waits until specific DOM elements appear in the browser, using an `ElementsLocator` to define the target.

## Command Type

**Command Type ID:** 6

## Parameters

| Parameter           | Type            | Description                               | Required |
| ------------------- | --------------- | ----------------------------------------- | -------- |
| **elementsLocator** | ElementsLocator | Defines how to locate the target elements | Yes      |
| **timeout**         | number          | Timeout for the command in milliseconds   | Yes      |

### ElementsLocator

| Field            | Type            | Description                                 | Required |
| ---------------- | --------------- | ------------------------------------------- | -------- |
| **selector**     | string          | CSS selector                                | Yes      |
| **continueWith** | ElementsLocator | Continue search within found element        | No       |
| **hasChildren**  | ElementsLocator | Filter elements that have matching children | No       |
| **index**        | number          | Select element by index                     | No       |
| **innerText**    | string          | Filter by inner text                        | No       |

## Usage Examples

### Wait for a Loading Indicator to Disappear

```json theme={null}
{
  "command": "wait-for-dom-element",
  "params": {
    "elementsLocator": { "selector": ".data-loaded" },
    "timeout": 15000
  }
}
```

### Wait for a Specific Item

```json theme={null}
{
  "command": "wait-for-dom-element",
  "params": {
    "elementsLocator": {
      "selector": ".match-row",
      "innerText": "Football"
    },
    "timeout": 20000
  }
}
```

## Related Commands

* [Get Text Contents](/stream/commands/browser/get-text-contents) - Extract text after waiting
* [Click by Javascript](/stream/commands/browser/click-by-javascript) - Click after waiting
