Read live HTML content of displayed webpage #40
Labels
feature request
feature request
priority-low
We have considered this issue and decided that we will not be able to address it in the near future.
tracked
We are tracking this work internally.
Can WebView2 support something like WebView.CaptureSelectedContentToDataPackageAsync but with an additional option to choose whether it captures the entire webpage versus only the selected portion of the webpage? For troubleshooting purposes, we would find it useful to be able to capture and analyze the HTML of the entire webpage, in order to figure out what's going wrong when a malfunction is reported by users.
I do realize that I can directly download the URL by myself using
Windows.Web.Http.HttpClient
but that's not the same thing because that effectively downloads the "source code" instead of the current live content of the webpage. JavaScript in the webpage is capable of making many modifications to the webpage, thus there can be a big difference between whatHttpClient
obtains and what is actually displayed in the WebView2.Ofcourse the original intention of
CaptureSelectedContentToDataPackageAsync
is to support copy & paste scenarios, and this is also a valid usage of this feature. If this feature is already supported for capturing the selected portion of the page, then it seems like very little work to create an option to make it capture the entire page.I think some other issues are much higher priority than this issue, but this feature would still be useful, even if it's not the most important thing currently.
AB#28476423
The text was updated successfully, but these errors were encountered: