Forum Discussion

mleblanc's avatar
mleblanc
New Contributor
14 years ago

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

3 Replies

  • Hi Michael


    I guess you need to modify the name mapping criteria for your frame object. Could you please specify what properties and values are used to identify the frame object?


    Thanks in advance.

    Ann

  • mleblanc's avatar
    mleblanc
    New Contributor
    Hey Ann,



    thanks for your reply. As you mentioned, I had to make use of wildcards in my name mappings to get the correct object each time.



    One of my tests gets stuck finding a certain textbox unless I re-save my name mappings each time before I run the test. I don't make any changes to the mappings, I just have to re-save it before each run. Without going into great detail right away, is that something you have come across before? Maybe a bug?



    Thanks,

    Michael
  • Hi Michael,


    I'm not sure how to reproduce the issue with the name mapping. Perhaps, the name mapping file is corrupted. Could you please contact our Support Team and send them the problematic project for the investigation? If you find the exact steps to reproduce the issue, please send them too.


    For the future reference, we'd appreciate it if you started a new forum thread instead of posting to the existing threads. Keeping one thread per question makes it quicker and easier for other people to find answers by browsing and searching for the forums. Thanks!


    Ann