Function waitForElement
- waitForElement<E extends Element = TestQueriedElement>(
selector: Selector,
options?: { expectSVG?: boolean },
): Promise<E>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,...]
Optionaloptions: { expectSVG?: boolean }
Returns Promise<E>
The requested element (will throw on timeout)
Wait for an element in the DOM to appear and become clickable. Scroll into view where needed