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