googleid_117429
12 years agoOccasional Contributor
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
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