qR | WebHare Platform SDKWebHare Platform SDKPreparing search index...@webhare/dompackqRFunction qRMatch a specific element using a CSS selector, requiring it to exist and be unique Param: node_or_selectorThe starting node or selector Param: selectorThe selector to match if the starting node was specified ReturnsThe requested element. Throw it the selector doesn't match exactly one element qR<E extends Element = HTMLElement>( startnode: QuerySelectorAble, selector: string,): EType ParametersE extends Element = HTMLElementParametersstartnode: QuerySelectorAbleselector: stringReturns EqR<E extends Element = HTMLElement>(selector: string): EType ParametersE extends Element = HTMLElementParametersselector: stringReturns ESettingsMember VisibilityProtectedInheritedThemeOSLightDarkWebHare Platform SDKLoading...
Match a specific element using a CSS selector, requiring it to exist and be unique
Param: node_or_selector
The starting node or selector
Param: selector
The selector to match if the starting node was specified
Returns
The requested element. Throw it the selector doesn't match exactly one element