champaramaiah
13 years agoOccasional Contributor
How to access dynamically changing objects
We have an application, which is developed in JAVA.
We try to click on a button or access an object using object spy.
When we use the object spy and find out the properties, we get the name as SwingObject,("JDialog"-1,1).
The index of this (1) changes during runtime (2 or 3).As a result the script fails.
It becomes more complex if we are trying access more windows/buttons in the application
At present, we are finding child index and label of that particular object and trying to access it.
Is their an easy way to sort this out
We try to click on a button or access an object using object spy.
When we use the object spy and find out the properties, we get the name as SwingObject,("JDialog"-1,1).
The index of this (1) changes during runtime (2 or 3).As a result the script fails.
It becomes more complex if we are trying access more windows/buttons in the application
At present, we are finding child index and label of that particular object and trying to access it.
Is their an easy way to sort this out