- waitForText(args): Promise<Element | null>
Parameters
- args: {
element: Element;
multipleTags?: boolean;
regex?: RegExp;
text?: string;
timeout?: number;
}element: Element
Optional
multipleTags?: boolean
Optional
regex?: RegExp
Optional
text?: string
Optional
timeout?: number
Returns Promise<Element | null>
Look for the given text within the given parent element. Return the element containing the text.