sanyasanghavi
7 days agoFrequent Visitor
Can't map CEF page components
I recently tried to map a CEF page on a desktop application I have installed. I can map the page itself as an object but not the individual components. So far, I've tried to run my application with ...
- 7 days ago
First step is to confirm whether this is really CEF.
How to isolate / confirm:
- Check the running processes:
- If you see msedgewebview2.exe, the app is using Microsoft Edge WebView2, not classic CEF.
- If the app loads libcef.dll, then it’s classic CEF.
- If it’s WebView2, -injectCefHook will not work (it only applies to classic CEF).
- Seeing only Chrome_RenderWidgetHostHWND and no DOM elements is expected when WebView2 is not properly configured for web testing.
Pointing in the right direction (official docs):
- WebView2 support in TestComplete (requirements and limitations):
https://support.smartbear.com/testcomplete/docs/app-testing/web/webview-two/about.html - Prerequisites for testing WebView2 apps (CDP/debug port requirement):
https://support.smartbear.com/testcomplete/docs/app-testing/web/webview-two/prerequisites.html - Classic CEF support and -injectCefHook (for comparison):
https://support.smartbear.com/testcomplete/docs/app-testing/web/cef/about.html
Summary:
If the app uses WebView2, enable WebView2/Chromium web support and ensure the app exposes a DevTools (CDP) port. If it’s truly classic CEF, then CEF injection applies — otherwise, fallback options are UI Automation or OCR.🤖 AI-assisted response
👍 Found it helpful? Click Like
✅ Issue resolved? Click Mark as Solution - Check the running processes: