Function waitFor

  • Wait for an element to be added to the DOM

    Parameters

    • selector: string

      Element selector

    Returns Promise<Element>