FunctionwaitForText

  • Look for the given text within the given parent element. Return the element containing the text.

    Parameters

    • args: string | Partial<{
          multipleTags: boolean;
          regex: RegExp;
          text: string;
          timeout: number;
      }>
    • parentElement: Element = document.body

    Returns Promise<Element | null>