Forum Discussion

googleid_117429's avatar
googleid_117429
Occasional Contributor
12 years ago

Objects recognized differently

Hi ,

i work on a silverlight application.

I have run “tcagpatcher” for the xap files to access its properties and methods.

When I spy them after I run the patcher I get the following object.



Sys.Process("Triton.Host").WPFObject("HwndSource: Shell", "").Window("Shell Embedding", "", 1).Window("Shell DocObject View", "", 1).Panel("http://vmqa06-sdny/New/C2.Ticket.html?&wf=new&v=9.0.17.0&h=TBLACK&loc=true&appunlock=true").Page("http://vmqa06-sdny/New/C2.Ticket.html?&wf=new&v=9.0.17.0&h=TBLACK&loc=true&appunlock=true").Form("form1").Panel("silverlightControlHost").Object("itgAlertSilverlightControl").SlObject("Shell", "").SlObject("ItemsControl", "").SlObject("CommandView", "").SlObject("RadTabControl", "").SlObject("HeaderDockedElement").SlObject("ScrollViewerElement").SlObject("radTabItem").SlObject("OrientationTransform").SlObject("AlertText")



If I spy the same object after a minute i get the below object :

Sys.Process("Triton.Host").WPFObject("HwndSource: Shell", "").Window("Shell Embedding", "", 1).Window("Shell DocObject View", "", 1).Panel("http://vmqa06-sdny/New/C2.Ticket.html?&wf=new&v=9.0.17.0&h=TBLACK&loc=true&appunlock=true").Page("http://vmqa06-sdny/New/C2.Ticket.html?&wf=new&v=9.0.17.0&h=TBLACK&loc=true&appunlock=true").Form("form1").Panel("silverlightControlHost").Panel("Silverlight Control").TabList("Rad Tab Control").PageTab("System.Windows.Controls.StackPanel", 2).Text("Alert")





Ithe first object is more reliable and the properties can be used.

The second object is too generalized and does not serve the purpose since there are other objects as well with the same properties with same values too.



My doubt is why is the object changing its full name dynamically .

Can any suggest what can be done.



Thanks,

Biji



  • googleid_117429's avatar
    googleid_117429
    Occasional Contributor
    Hi Tanya,

    The SlObject is at the top itself. i am attaching screen shot too.

    Please do have a look.




  • Hi Biji,


     


    It looks like TestComplete stops recognizing your Silverlight app properly for some reason. Could you please make sure that you are using the latest TestComplete version - v 9.31? If you do, please refer this question to our Support team - they should investigate this behavior.