waitForElement | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...
    • Wait for an element in the DOM to appear and become clickable. Scroll into view where needed

      Type Parameters

      • E extends Element = TestQueriedElement

      Parameters

      • selector: Selector

        either a direct string or an array of [selector,index,selector,index,...]

      Returns Promise<E>

      The requested element (will throw on timeout)