Function: findByRole()
findByRole(
container,role,options?):Promise<Widget>
Defined in: queries.ts:241
Waits for and finds a single widget matching the specified accessible role.
Parameters
| Parameter | Type | Description |
|---|---|---|
container | Container | The container to search within |
role | AccessibleRole | The accessible role to match |
options? | ByRoleOptions | Additional filtering options (name, checked, expanded) |
Returns
Promise<Widget>
Promise resolving to the matching widget