As best as I can tell, you are trying to use WebBrowser and WebView as if they are the same thing. They are not. You cannot use parts of WebBrowser and parts of WebView.
See WebView Class; specifically the part that says:
In apps compiled for Windows 10, WebView uses the Microsoft Edge rendering engine to display HTML content. In apps compiled for Windows 8 or Windows 8.1, WebView uses Internet Explorer 11 in document mode.
As you can see, for WebView there is no equivalent to a WebBrowser.Document
property. The following describes how to get the HTML from a WebView, however they are for UWP programs. You should have used a tag for your question to indicate whether this is a UWP, WPF or Windows Forms program.
- c# - How can I get web content with HtmlAgilityPack after login? - Stack Overflow
- web scraping - HtmlAgilityPack Youtube search in UWP c# - Stack Overflow
If you can be more specific about the type of application this is then I can be more specific about what to do.