Forum Discussion

riordanalex's avatar
riordanalex
Occasional Contributor
13 years ago

Object not appearing object browser unless spied with Object Spy

Version: TestComplete 9.31

Browser: IE 8

OS: Windows 7 Enterprise



I am attempting to access a mapped object to manipulate a form. The object is a child of a frame in the application under test.



However, when launching the application, I have noticed that the child object does NOT appear in the object browser unless I manually use the Object Spy to hover over it. 



I have tried programmatically called the TestedObj.Refresh() method on the child object itself, the child object's immediate parent, the Browser object, and the Sys object. I have also attempted to call the RefreshMappingInfo method on the child object.



Is this a TestComplete issue? Why does the object only appear in the tree when using the Object Spy?



6 Replies


  • Hi Alex,


     


    You can refresh the object tree in the Object Browser panel: right-click the object on the panel and select Refresh All from the context menu.


     

  • riordanalex's avatar
    riordanalex
    Occasional Contributor
    Hi, 



    I have already tried using 'Refresh All' to no avail. The object does not appear in the tree when I do this.



    It seems to only appear when I use the Object Spy on it.
  • riordanalex's avatar
    riordanalex
    Occasional Contributor
    To explain the issue further, it seems that object I cannot identify is an embedded <OBJECT> html element. So when I use the Object Spy to inspect the onscreen elements, I get a valid reference to the Object("...") object.



    However, I am UNABLE to obtain a reference to this object no matter what I do at RUNTIME. It just won't appear in the tree...
  • riordanalex's avatar
    riordanalex
    Occasional Contributor
    Unforunately, no, it's an internal site I log in to remotely. I cannot give access to the site.



    I will say that I am able to access the object within a different structure - it appears under BrowserWindow - Tab - then an object called ControlAxSourcingSite (not in the Page hiearchy). 

  • Hi Alex,


     


    Could you please answer the following questions to help us better understand what is going on:


    1. What content is displayed inside the Object element? 


    2. Are you using the latest TestComplete version - v.9.31?


    3. What browser are you using? 


    4. Have you tried to reproduce this behavior in different browsers?