Forum Discussion

Everseeker's avatar
Everseeker
Contributor
10 years ago

Custom Web Objects are opaque to TC? (TC11 + Angular)

So, I have TC11.1, all patched and happy.

I have an application that is a nice Web page...

The entire app runs in frames... One master frame, with all the bits and pieces within. It's an Angular structure.

 

So, Along I come, attempting to record a script... I launch the page, click some controls, spin some spinners, browse thru a couple pages, then close the site

TC Recorded.... Launch the page...............NOT good

Redid it, and tried to use object checkpoint ... the entire page has a red border... NOTHING else(not good)

Tried a Web comparison checkpoint... Got this:

2015-09-21_10-26-59.png

Well.... That's not good.

 

Any thoughts?

  • Chrome:

    Sys.Browser("chrome").BrowserWindow(1).Window("Chrome_RenderWidgetHostHWND", "Chrome Legacy Window", 1)

     

    Firefox: I can see elements, sort of, but... well, here is an example

    Sys.Browser("firefox").Page("http://itemmastertest.samtec.com/#/Dashboard").Panel(0).Panel(1).Panel(0).Panel(0).
    Panel(0).Panel(1).Panel(2).Panel(0).Panel("QueueItemMasterGrid").Panel(1).Panel(0).Panel(0).Panel(0).Panel(1).
    Panel(0).Link(0)

     

    IE Same as Firefox...

    Sys.Browser("iexplore").Page("http://itemmastertest.samtec.com/#/Dashboard").Panel(0).Panel(1).Panel(0).Panel(0).
    Panel(0).Panel(1).Panel(2).Panel(0).Panel("QueueItemMasterGrid").Panel(1).Panel(0).Panel(0).Panel(0).Panel(1).
    Panel(0).Link(0)

     

    Looks exactly the same... everything is buried in a sea of Panel(x)'s

     

    So, the solution, for me, is to NOT use Chrome.

    I guess this is where Alias'ing is going to come in REALLY handy....

     

  • Lage's avatar
    Lage
    10 years ago

    hi mate,

     

    My scenario is working fine:

    • TestComplete 11.10.1005.7
    • Chrome Version 45.0.2454.93 m 

     

    Can you have a look in to your chrome extensions: chrome://extensions/ ?  Should be that way:

    20150922chromeExtensions.png

  • Chrome:

    Sys.Browser("chrome").BrowserWindow(1).Window("Chrome_RenderWidgetHostHWND", "Chrome Legacy Window", 1)

     

    Firefox: I can see elements, sort of, but... well, here is an example

    Sys.Browser("firefox").Page("http://itemmastertest.samtec.com/#/Dashboard").Panel(0).Panel(1).Panel(0).Panel(0).
    Panel(0).Panel(1).Panel(2).Panel(0).Panel("QueueItemMasterGrid").Panel(1).Panel(0).Panel(0).Panel(0).Panel(1).
    Panel(0).Link(0)

     

    IE Same as Firefox...

    Sys.Browser("iexplore").Page("http://itemmastertest.samtec.com/#/Dashboard").Panel(0).Panel(1).Panel(0).Panel(0).
    Panel(0).Panel(1).Panel(2).Panel(0).Panel("QueueItemMasterGrid").Panel(1).Panel(0).Panel(0).Panel(0).Panel(1).
    Panel(0).Link(0)

     

    Looks exactly the same... everything is buried in a sea of Panel(x)'s

     

    So, the solution, for me, is to NOT use Chrome.

    I guess this is where Alias'ing is going to come in REALLY handy....

     

      • Everseeker's avatar
        Everseeker
        Contributor

        One would think that, huh...

         

        But, as I said in the first line... TC 11.1, all patched and happy...

        Actually, that's a wee bit off. I am running Chrome 45. THis version, and all to come after, are no longer playing well with the old Plug-in methods. 

        TC 11.1 has rolled the plugin INTO the main program... 

        For people who run on an older TC, if you can not upgrade to a newer version, I would recommend getting a specific Chrome version and locking it down, so it can't auto-update

        (It's like a wet eel though, 1 slip and poof, updated)