Function waitForText

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

    Parameters

    • args: {
          element: Element;
          multipleTags?: boolean;
          regex?: RegExp;
          text?: string;
          timeout?: number;
      }
      • element: Element
      • OptionalmultipleTags?: boolean
      • Optionalregex?: RegExp
      • Optionaltext?: string
      • Optionaltimeout?: number

    Returns Promise<Element | null>