Lupa API Reference / commands/locator / QueryByText
Interface: QueryByText
Defined in: src/commands/locator.ts:44
Find an element by the text it contains. You can match by a substring, exact string, or a regular expression when using the text locator strategy.
Properties
text
text:
string
Defined in: src/commands/locator.ts:48
The text to use to locate the element.