Skip to content

Read live HTML content of displayed webpage #40

Open
@verelpode

Description

@verelpode

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 what HttpClient 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestfeature requestpriority-lowWe have considered this issue and decided that we will not be able to address it in the near future.trackedWe are tracking this work internally.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions