> ## 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.

# Get Elements

> Retrieve DOM elements and return their detailed representations

The Get Elements command (Command Type: 8) retrieves specified DOM elements from the web page and returns their detailed representations (including attributes, children, and text content).

## Command Type

**Command Type ID:** 8

## Parameters

| Parameter           | Type            | Description                                      | Required |
| ------------------- | --------------- | ------------------------------------------------ | -------- |
| **elementsLocator** | ElementsLocator | Specifies the criteria to locate target elements | Yes      |
| **timeout**         | number          | Timeout 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 with matching children | No       |
| **index**        | number          | Select element by index                | No       |
| **innerText**    | string          | Filter by inner text                   | No       |

## Usage Examples

### Get All Table Rows

```json theme={null}
{
  "command": "get-elements",
  "params": {
    "elementsLocator": { "selector": "table.data tr" },
    "timeout": 10000
  }
}
```

## Related Commands

* [Get Text Contents](/stream/commands/browser/get-text-contents) - Get only text content
* [Get Attributes](/stream/commands/browser/get-attributes) - Get only element attributes
* [Get Inner Texts](/stream/commands/browser/get-inner-texts) - Get visible inner text
