Get all Elements by id or classname

Is it possible to get every single element by ID or Classname when opening a website using the following?

$IE=new-object -com internetexplorer.application $IE.navigate2("") $IE.visible=$true while($ie.ReadyState -ne 4) {start-sleep -m 100} ## The below will let me see single elements but I'm looking to list every single element. $ie.document.getelementbyid 

submitted by /u/Grotrot
[link] [comments]

Leave a Reply