mleblanc
14 years agoNew Contributor
Frame opens with new id (iterated id #) each time - can't find control
I'm evaluating this product and am impressed with its capabilities so far.
I am getting stuck on the following issue:
Within the Java desktop app that I'm testing, I have a menu button that I click to open a new Frame/Window for some data entry.
Each time I open this frame, it gets a new id (frame0, then frame1, then frame2, ...)
See screenshot: imgur link
So when I record the test, my steps will be assigned under the 'frame0' object. However, the next time the test runs, it's opening the frame which is now "frame1" and testing fails because it's looking for frame0.Is there a way to dynamically find the id of the frame? Through scripts?
Any help is appreciated.
Thanks,
Michael
I am getting stuck on the following issue:
Within the Java desktop app that I'm testing, I have a menu button that I click to open a new Frame/Window for some data entry.
Each time I open this frame, it gets a new id (frame0, then frame1, then frame2, ...)
See screenshot: imgur link
So when I record the test, my steps will be assigned under the 'frame0' object. However, the next time the test runs, it's opening the frame which is now "frame1" and testing fails because it's looking for frame0.Is there a way to dynamically find the id of the frame? Through scripts?
Any help is appreciated.
Thanks,
Michael