Trouble Recording Tests for WPF WebView2 Application – Entire Window Detected Instead of UI Elements
Hi everyone,
I'm currently evaluating TestComplete to see if it's a good fit for testing my WPF application, which uses a WebView2 container to render our web-based UI.
During my trial, I’ve run into a major roadblock: when I try to record tests or use the Object Spy, TestComplete only detects the entire application window as a single object. It doesn’t recognize or allow interaction with individual UI elements inside the WebView2 control.
I’ve tried both keyword test recording and using the Object Spy, but neither approach identifies the DOM elements or controls within the WebView2 content. Instead, TestComplete treats the entire WebView2 area as a single object.
Additionally, I wasn’t able to find any documentation or official guidance regarding TestComplete’s support for desktop applications using WebView2. This makes it difficult to determine whether this is a limitation of the tool or if there’s a configuration I’m missing. The previous posts regarding this issue are in the realm of 6-8 years old so I'm hoping there is a current fix to this issue.
Has anyone successfully tested a WPF + WebView2 application with TestComplete? Are there any configurations, plugins, or workarounds that allow TestComplete to access and interact with the DOM inside WebView2?