Function: findByText()
findByText(
container,text,options?):Promise<Widget>
Defined in: queries.ts:433
Finds a single element by visible text content.
Similar to findByLabelText but focuses on directly visible text.
Parameters
| Parameter | Type | Description |
|---|---|---|
container | Container | The container to search within |
text | TextMatch | Text to match (string, RegExp, or custom matcher) |
options? | TextMatchOptions | Query options including normalization and timeout |
Returns
Promise<Widget>
Promise resolving to the matching widget