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
| Parameter | Type | Description |
|---|---|---|
container | Container | The container to search within |
text | string | RegExp | The text or pattern to match |
options? | TextMatchOptions | Text matching options (exact, normalizer) |
Returns
Promise<Widget>
Promise resolving to the matching widget