Empty 'AWTComponentName' and 'AWTComponentAccessibleName' values.
Hi,
There's a bit of a UI redesign for our application under test (Java Swing). I'm trying to modify the scripts to follow suit - but I'm finding that a little hard as there are now a lot more JPanels leading up to the UI elements I'm trying to interact with. I was thinking of skipping those by looking for something unique on the elements in question - but for some reason their field names are not appearing in AWTComponentName or AWTComponentAccessibleName - those are just displayed as empty - so all I have to go by is the Class and AWTComponentIndex - which isn't good enough of Unique identifiers when skipping lots of empty JPanels.
The class for fields in question extends JTextField - which is a descendant of AWTComponent. So what gives? Anyone encountered something like this before?
Ok, we figured it out. Developers needed to call .setName() method from java.awt.Component for that value to become visible to TestComplete.