ElementResolver
This class should be used to select an element or an array of elements from the DOM using CSS selectors. A complete list of selectors can be found at the MDN web docs.
.resolve()
Resolve multiple elements
returns HTMLElement[] or [] when the element does not exist in the DOM.
const htmlElement = ElementResolver.resolve('.some-class');
.resolveOne()
Resolve one element
returns HTMLElement|Node|Element or null when the element does not exist in the DOM.
const htmlElement = ElementResolver.resolveOne('.some-class');