Forum Discussion

ss237's avatar
ss237
Regular Visitor
2 months ago
Solved

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 ...
  • Hassan_Ballan's avatar
    2 months ago

    First step is to confirm whether this is really CEF.

    How to isolate / confirm:

    1. 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.
    2. If it’s WebView2, -injectCefHook will not work (it only applies to classic CEF).
    3. 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):

    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