Forum Discussion

goels's avatar
goels
New Contributor
5 years ago

Unable to find root node for tree object using TestLeft

I'm trying to identify the tree object for my application. When I find the object using TestSpy, it only returns the object identification for whole panel but not the tree object. It returns class name like below.

"com.ac.desktop.module.mvc.view.AbstractTreeView$InternalJTree" 

 How can I identify root node of the tree and thus corresponding nodes.

 

 

2 Replies

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    a) Every object in TestLeft is identified by the FullName property, but not the class name;

    b) You should be able to traverse back object's hierarchy using the 'parent' property. The root object for desktops has 'Sys' name.