I would like to find all elements on page by partial tagname.
For example, I would like to find all elements whose tagname contains the word directive using JQuery.
<a-directive>...</a-directive> <directive-b>...</directive-b> I tried $("directive*"), $("*directive"), $("*directive*") none of them worked for me.
I have only found a way in JQuery to find elements by partial attribute match, such as $("[name*='something']")
But could not find a way to find elements by partial tagname.

directive, I would like to fetch them all for UI automation purposes.I tried different JQuery selectors that I am aware of and also searched online to select by partial tag name, could not find an answer, hence asked a question.