> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# Type Alias: GetByText\<T _extends_ `HTMLElement` = `HTMLElement`>

> **GetByText**\<`T` _extends_ `HTMLElement` = `HTMLElement`> = (`container`: `HTMLElement`, `id`: [`Matcher`](/next/api/react/testing-library/Type_Aliases/Matcher.md), `options?`: [`SelectorMatcherOptions`](/next/api/react/testing-library/Interfaces/SelectorMatcherOptions.md)) => `T`

## Type Parameters

| Type Parameter              | Default type  |
| --------------------------- | ------------- |
| `T` _extends_ `HTMLElement` | `HTMLElement` |

## Parameters

| Parameter   | Type                                                                                             |
| ----------- | ------------------------------------------------------------------------------------------------ |
| `container` | `HTMLElement`                                                                                    |
| `id`        | [`Matcher`](/next/api/react/testing-library/Type_Aliases/Matcher.md)                             |
| `options?`  | [`SelectorMatcherOptions`](/next/api/react/testing-library/Interfaces/SelectorMatcherOptions.md) |

## Returns

`T`
