Use .outerHTML to get the HTML
.outerHTML
Here is a code sample to get the entire HTML of the website
private async void GetHTMLAsync() { var siteHtML = await webView.InvokeScriptAsync("eval", new string[] { "document.documentElement.outerHTML;" }); }