Function findElement
- findElement<E extends Element = TestQueriedElement>(
selector: Selector,
options?: { expectSVG?: boolean },
): E | nullLookup an element in the DOM using our testfw selectors
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 E | null
The requested element or null if not found
Lookup an element in the DOM using our testfw selectors