Function waitForReferenceElement

Like getReferenceElement excepts if no element matches the specification if will wait for at most the given time for such an element.

  • Parameters

    • spec: string
    • thisElement: Element
    • timeout: number = 200

    Returns Promise<Element>