qR | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Match a specific element using a CSS selector, requiring it to exist and be unique

    The starting node or selector

    The selector to match if the starting node was specified

    The requested element. Throw it the selector doesn't match exactly one element

    • Type Parameters

      • E extends Element = HTMLElement

      Parameters

      • startnode: QuerySelectorAble
      • selector: string

      Returns E

    • Type Parameters

      • E extends Element = HTMLElement

      Parameters

      • selector: string

      Returns E