Skip to main content

Function: findByLabelText()

findByLabelText(container, text, options?): Promise<Widget>

Defined in: queries.ts:267

Waits for and finds a single widget matching the specified label text.

Parameters

ParameterTypeDescription
containerContainerThe container to search within
textstring | RegExpThe text or pattern to match
options?TextMatchOptionsText matching options (exact, normalizer)

Returns

Promise<Widget>

Promise resolving to the matching widget