I want to use Invoke-WebRequest downloadedFile.html and parse the html, but the object this returns contains a property '.ParsedHtml' which has no data when pointing to an offline file. Is there a way to do this to get parsed html data? Is there another way to do this?
I looked into this a while ago and couldn't make it work, but you can download the HTML Agility Pack DLL and use that instead. It works regardless of the source (and generally performs much better anyway.) You can find it at https://htmlagilitypack.codeplex.com/