Skip to main content

Function: findByText()

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

Defined in: queries.ts:293

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

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