WebView2.DevTools.Dom (nuget): WebView2.DevTools.Dom - Extension WebView2 providing strongly typed DOM access/modification.        ✔️ WebView2.DevTools.Dom is a library for strongly typed DOM access when using WebView2.       ✔️ It provides a convenient way to write readable/robust/refactorable DOM access code.       ✔️ Chrome DevTools Protocol based API       ✔️ Talks directly to the WebView2 browser (no remote debugging port required).       ✔️ Extensive Unit Tests       ✔️ Free for everyone to use                 // Add using WebView2.DevTools.Dom; to get access to the CreateDevToolsContextAsync extension method         var devToolsContext = await coreWebView2.CreateDevToolsContextAsync();                  // Get element by Id         // https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector         var htmlDivElement = await devToolsContext.QuerySelectorAsync<HtmlDivElement>("#myDivElementId");          //Set innerText property for the element         await htmlDivElement.SetInnerTextAsync("Welcome!");          // Manually dispose of context (only DisposeAsync is supported as the whole API is async)         // alternativly use await using var devToolsContext = await coreWebView2.CreateDevToolsContextAsync();         // if your .Net version supports it.         await devToolsContext.DisposeAsync();                 Website: https://github.com/ChromiumDotNet/WebView2.DevTools.Dom
Keywords: webview2|webview|devtools|dom|automation