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

# Function: findAllByRole()

> **findAllByRole**\<`T` _extends_ `HTMLElement` = `HTMLElement`>(...`args`: \[`HTMLElement`, `any`, [`ByRoleOptions`](/next/api/react/testing-library/Interfaces/ByRoleOptions.md), [`waitForOptions`](/next/api/react/testing-library/Interfaces/waitForOptions.md)]): `Promise`\<`T`\[]>

## Type Parameters

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

## Parameters

| Parameter | Type                                                                                                                                                                                      |
| --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ...`args` | \[`HTMLElement`, `any`, [`ByRoleOptions`](/next/api/react/testing-library/Interfaces/ByRoleOptions.md), [`waitForOptions`](/next/api/react/testing-library/Interfaces/waitForOptions.md)] |

## Returns

`Promise`\<`T`\[]>
