Forum Discussion

eykxas's avatar
eykxas
Regular Contributor
1 month ago

Object Brower : annoying behavior

Hi everyone !

I have a very annoying issue. Sometimes, the object browser load the DOM in the same manner than "legacy features".

The normal behavior is this :

Custom Angular components are properly detected, like "AppSignRoot" in this example.
But sometimes, the tree look like this :

Custom components are not properly detected. Here, the "AppSignRoot" node is "Panel(4)".
If I hit the refresh button, everything gets back to normal like the first screenshot.

But, calling the Refresh() method on the page object or browser object (in my script and / or test item) does nothing. 

The DOM is randomly not detected properly. 

And I'm out of solutions.

Any idea ?

7 Replies

  • rraghvani's avatar
    rraghvani
    Icon for Champion Level 3 rankChampion Level 3

    I've seen this issue a number of times in the past, and it's relating to Chromium (used by Chrome and Edge) not exposing the controls to TestCompletes' Object Spy engine. If you are using the Supported Browsers, then you shouldn't have this issue. 

    Chrome and Edge automatically updates in the background to ensure users have access to the latest features, security updates, and performance optimisations. This usually causes breakages in other application that depend on it. Hence, supported browser is usually a few versions behind.

    I can only suggest to open a support ticket via https://support.smartbear.com/testcomplete/

    • eykxas's avatar
      eykxas
      Regular Contributor

      That's precisely the problem. It appeared with version 140 of the engine. Unfortunately, my company enforces extremely strict security rules, and I can't revert to a previous version (it's strictly forbidden by internal policy).

      I'm stuck and need to find a workaround. I tried using Firefox, but that would require rebuilding the entire project, which isn't feasible (not to mention the significant performance drop).

      I'll open a ticket, meanwhile, if you have any idea...

      • Hassan_Ballan's avatar
        Hassan_Ballan
        Icon for Champion Level 3 rankChampion Level 3

        Switching to Firefox does not require rebuilding the project—TestComplete supports cross-browser testing, so you can record in one browser and run in others. (Supported Browsers, Cross-Browser Testing)

        For Chromium DOM recognition issues, Refresh() doesn’t help, but you can catch the condition and send an F5 key programmatically (Sys.Browser("Chrome").Keys("[F5]")) to refresh and continue.

        🤖 AI-assisted response
        👍 Found it helpful? Click Like
        ✅ Issue resolved? Click Mark as Solution