supergajit
18 hours agoOccasional Visitor
Oracle Forms window with dynamic name - unable to click on subsequent runs
I have this little beast...
The name of this is:
Aliases.java.bufferedframeOciDev1RemoteSiteTc.windowFormsCashDrawerNumberIs542.buttonbar.ClickItem("OK");
The next time I run this test it will be named:
Aliases.java.bufferedframeOciDev1RemoteSiteTc.windowFormsCashDrawerNumberIs543.buttonbar.ClickItem("OK");
I have tried several ways of replacing '543' with the var drawerNo, but then the object isn't found. If I do
var winName = windowFormsCashDrawerNumberIs + drawerNo
The object still can't be found.
How can I get TC to recognize this window when it's name changes each time I run the test? I've recorded a keyword test several times, converted it to a script (JS) and made adjustments with no luck.