One more issue Im having (made a new thread to keep everything straight) - The issue is I have an application which has multiple panels. Each one of these panels has a new index on the swing object.
The entire line of code is identical - except for this piece
I need to replace "4" with something else - I thought a wildcard would do the trick but when I use ("*") it tells me it has to wait until the window is active. As soon as I click on the window - the script runs as normal.
How can I make this dynamic so it doesn't care about this index? Removing it completely just causes the script to break.
If you need to use custom identification criteria or even ignore some parts of the objects hierarchy, I recommend that you use Name Mapping instead of full names for objects identification. Please see the "Name Mapping - Overview" help topic (http://www.automatedqa.com/support/viewarticle/11327/) for more information.