It doesn’t appear that the Source property for the XAML WebView control is updating as the user is navigating in the WebView. Is it possible to get either the current Uri or the HTML currently being rendered in the WebView? My need is to parse the HTML that is being displayed so either would work.
It doesn’t appear that the Source property for the XAML WebView control is updating
Share
Turns out that the WebView doesn’t provide a way to retrieve its HTML directly. But you can use WebView.InvokeScript like this:
You can also obtain the Uri via the LoadCompleted event’s NavigationEventArgs.Uri.