Searching for elements in a webpage can be done using different methods.
document.getElementsByTagName('*')
and document.all
Are there any other more efficient ways or are these two the most recommended?
I am currently working on an element selector as part of my practice, and I am looking to identify the most dependable method for retrieving all elements on a page for testing purposes.