Forum Discussion
HKosova
13 years agoSmartBear Alumni (Retired)
Hi Jenny,
If AWTComponentAccessibleName of controls is empty, then, probably, the labels aren't associated with these controls in the application code (e.g. via JLabel.setTextFor or a similar method). In this case, I'm afraid, there's no way to get a control's label text and to identify controls by neighboring labels in TestComplete.
So, I recommend that you use other properties to identify these objects, such as JavaClassName, AWTComponentName (the object name as defined in the application's source code) and/or AWTComponentIndex.
I've also filed a feature request to add a property similar to RFT's priorLabel so that TestComplete could offer better object identification in such situations. Thanks for drawing our attention to this matter!
If AWTComponentAccessibleName of controls is empty, then, probably, the labels aren't associated with these controls in the application code (e.g. via JLabel.setTextFor or a similar method). In this case, I'm afraid, there's no way to get a control's label text and to identify controls by neighboring labels in TestComplete.
So, I recommend that you use other properties to identify these objects, such as JavaClassName, AWTComponentName (the object name as defined in the application's source code) and/or AWTComponentIndex.
I've also filed a feature request to add a property similar to RFT's priorLabel so that TestComplete could offer better object identification in such situations. Thanks for drawing our attention to this matter!
Related Content
- 2 years agohmckay