There are some websites, such as gmail.com that don't display source information (i.e. you cannot right-click and select "View Source")
So I am trying to read the document source into a file so I can see the different types of elements (I would like to be able to pass credentials and other data into websites eventually), but I'm having difficulty.
Here is the code:
$ie = new-object -com "InternetExplorer.Application"
$ie.navigate("http://www.gmail.com")
$ie.visible=$true
$doc = $ie.document
Add-Content C:\output.txt $doc.all
C:\output.txt is blank, help!