Forum Discussion

nickoa2001's avatar
nickoa2001
Occasional Contributor
3 years ago
Solved

Cannot recognize objects inside CEF window

I am facing the following issue: I have a desktop app that got integration with a new Chromium Web Browser. This browser is started from a desktop app and is integrated with it. Based on your docu...
  • nickoa2001's avatar
    3 years ago

    We figured out that the CefHook applied to the launcher process doesn't apply to the main application process once it's started from the launcher. To work around this, we added the main application process to the TestedApps collection and specified there all the needed parameters along with the -injectCefHook parameter, to start this process separately. After that, the CEF part of the application was correctly recognized by TestComplete, and the Object Spy tool was able to catch individual Cef elements.

     

     

    To run the Tested Application from the script, just use the TestedApps.AppName.Run() command (https://support.smartbear.com/testcomplete/docs/testing-with/tested-apps/running.html)