Skip to main content

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

ParameterTypeDescription
containerContainerThe container to search within
roleAccessibleRoleThe accessible role to match
options?ByRoleOptionsAdditional filtering options (name, checked, expanded)

Returns

Promise<Widget>

Promise resolving to the matching widget