It will return the first match it finds.
Tip: to use namespaces, escape the colon in the name:
element.querySelector(`ns\:tag`); // the backticks are raw strings then the backslash is interpreted by querySelectorElement querySelector(string selector) @scriptableReturns a child element that matches the given selector.
It will return the first match it finds.
Tip: to use namespaces, escape the colon in the name:
element.querySelector(`ns\:tag`); // the backticks are raw strings then the backslash is interpreted by querySelector