# Oracle Forms window with dynamic name - unable to click on subsequent runs

**URL:** <https://community.smartbear.com/t/oracle-forms-window-with-dynamic-name-unable-to-click-on-subsequent-runs/419>\
**Category:** TestComplete\
**Tags:** test, testcomplete, migrated, desktop-testing, latest\
**Created:** [April 2, 2026, 6:12pm UTC](https://community.smartbear.com/t/oracle-forms-window-with-dynamic-name-unable-to-click-on-subsequent-runs/419 "2026-04-02T18:12:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [April 2, 2026, 6:12pm UTC](https://community.smartbear.com/t/oracle-forms-window-with-dynamic-name-unable-to-click-on-subsequent-runs/419/1 "2026-04-02T18:12:14Z")

</div>

> Originally posted by **supergajit** on April 02, 2026

I have this little beast…

 ![](https://canada1.discourse-cdn.com/flex049/uploads/smartbear_prod/original/1X/6a7d080abbeeaf5d1fc41f25cdf17b8c3dc52b43.png)

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.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [April 2, 2026, 7:21pm UTC](https://community.smartbear.com/t/oracle-forms-window-with-dynamic-name-unable-to-click-on-subsequent-runs/419/2 "2026-04-02T19:21:03Z")

</div>

> Originally posted by **caitlinrich** on April 02, 2026

Hi,

You can wildcard the dynamic element in the NameMapping selectors. [See documentation for using wildcards in NameMapping here.](https://support.smartbear.com/testcomplete/docs/reference/misc/using-wildcards.html) The Alias can be renamed to remove the number - the alias is meant for the human to read, not TestComplete.

---

<div class="post-metadata">

**Author:** ![system](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@system](https://community.smartbear.com/u/system)\
**Post date:** [April 3, 2026, 3:44pm UTC](https://community.smartbear.com/t/oracle-forms-window-with-dynamic-name-unable-to-click-on-subsequent-runs/419/3 "2026-04-03T15:44:19Z")

</div>

> Originally posted by **rraghvani** on April 03, 2026

Refer to the the name mapping of _windowFormsCashDrawerNumberIs543_, not the alias name. The property value you have defined, is most likely referencing “…543”. You need to replace the number with a wildcard i.e. asterisk (\*) - which will look something like “Cash Drawer Number Is \*”
