Hello everyone. Did someone manage to get this to work? There is no documentation on webview2 and also smartbear support doesnt seem to know how we can get this to work. We tried a lot of differen...
I've been looking into this, and learning about WebView2. I have a simple C# WebView2 forms application that displays a web site.
C# WebView2 form application
The Object Browser shows the following
Standard UI controls exposed
Enabling MSAA (TC -> Project Settings), exposes the controls of the application
Application controls exposed
Enabling UI Automation (TC -> Project Settings), exposes even more of the application
More controls exposed of the application
and also WebView2, including the UI controls within
WebView2 and all UI controls with
For this to work correctly, the appropriate flag settings needs to be enabled for WebView2 control within the application.
Using TC version
If you're using Selenium WebDriver, then you can use the following command (I haven't tested this)
var environment = await CoreWebView2Environment.CreateAsync(null, null, new CoreWebView2EnvironmentOptions("--remote-debugging-port=9222"));
await webView.EnsureCoreWebView2Async(environment);
I hope this helps, and gives you a starting point.