findElement | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...
    • Lookup an element in the DOM using our testfw selectors

      Type Parameters

      • E extends SVGElement

      Parameters

      • selector: Selector

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

      • options: { expectSVG: true }

      Returns E | null

      The requested element or null if not found

    • Lookup 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