Forum Discussion
mikev
14 years agoContributor
In looking at this a little more closely, there are actually two objects that are exactly the same in the object browser. At least with the human eye, all the descriptions look the same, except one of them is "visible" and the other one isn't. Somehow, it looks as though the first time through, either the application is not "closing" the object, and when a new one is launched, there is a duplicate. Then when I'm trying to access it, TC only "sees" the one that isn't visible. Weird, but I can't think of a work-around here.
AWTComponentName for the dialog that isn't visible is 'dialog8', the AWTComponentName for the new on is 'dialog9', so as far as TC is concerned, I can see that it thinks they are different. However, the description(s) that I'm using in the NameMapping are:
JavaFullClassName, AWTComponentAccessibleName and JavaClassName. These values are the same for both objects. Even if I use FindChild to identify the object (not using NameMapping), because there are two objects with the same description, how can I find the one? Check Visible too? VisibleOnScreen?
AWTComponentName for the dialog that isn't visible is 'dialog8', the AWTComponentName for the new on is 'dialog9', so as far as TC is concerned, I can see that it thinks they are different. However, the description(s) that I'm using in the NameMapping are:
JavaFullClassName, AWTComponentAccessibleName and JavaClassName. These values are the same for both objects. Even if I use FindChild to identify the object (not using NameMapping), because there are two objects with the same description, how can I find the one? Check Visible too? VisibleOnScreen?