Forum Discussion

TestQA1's avatar
Frequent Contributor
2 years ago

Spying objects within Tree hierarchy (Java Swing Desktop)


Hi folks,


I have Tree structure in the product which conatins main sub nodes. Below is the object location for the tree (not inside objects). Now the problem is that the Object Spy only highlights the tree outline and not get into the sub nodes i.e. it doesn't highlight on hovering the sub nodes and also click cannot be performed as the sub nodes objects cannot not found. 

Sys.Process("someprocess").SwingObject("TestProduct").SwingObject("JRootPane", "", 0).SwingObject("JPane").SwingObject("JcontentPane").SwingObject("JPanel", "", 0).SwingObject("JPanel", "", 0).SwingObject("JNavigation", "", 0).SwingObject("JSplitPane", "", 0).SwingObject("JScrollPane", "", 0).SwingObject("JViewport", "", 0).SwingObject("JTree", "")

Is there any way the sub nodes objects could be found or the clicking can be performed w/o going into finding the screen coordinates as it's so unreliable and prone to errors.


Thank you

2 Replies