I have a desktop application (using Java forms) that runs on different environments. The functionality is the same, but when I try to run the same test, the object that is needed is slightly different.
Here is an example:
The only difference seems to be that it finds a different frame when using a different environment. Is there a way that I can make the object reusable on different environments?
I'm currently capturing the objects with the object spy.
Yes, you can use a wildcard in your alias to allow Frame* to match
Thanks for the reply.
I had a look at the documentation, but I couldn't figure out how to use a wildcard in my scenario.
I've added a screenshot below of the object when I edit it, should I be adding the wildcard somewhere there?
Close. You want to find where that Frame3 (or another one of the frames) is listed in the Properties so you can edit it
I have doubts as for the AWTComponentAccessibleName property: everything after the 'Oracle Applications - ' substring seems to be environment-specific and I would try to replace it with the '*" wildcard.
I.e. I would set value for the AWTComponentAccessibleName property to 'Oracle Applications - *'.
Also, you may compare mapping for Frame and Frame3 objects and find out the differences between properties' values.