Skip to content

Feature Request - Add DevToolsContext.GetHtmlDocumentAsync #28

@ChemMitch

Description

@ChemMitch

Hello! I've installed WebView2.DevTools.Dom on top of WebView2 and see that there is an HtmlDocument class.
How can I access the HtmlDocument for my WebView2 control?
Several AIs have claimed I can do

var devToolsContext = await webView2Control.CoreWebView2.CreateDevToolsContextAsync();

// Get the HtmlDocument from the context
var htmlDocument = await devToolsContext.GetHtmlDocumentAsync();

but Visual Studio does not recognize GetHtmlDocumentAsync().

What's the correct syntax for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions