Forum Discussion

ZXQA's avatar
ZXQA
Occasional Contributor
5 years ago

Finding an object when form name changes but every form has the same object

Hello,    This explanation may be poor but I am trying to script this for the first time. I have an object that I need to interact with regardless of what form I am on. I have tried to use the exam...
  • Wamboo's avatar
    Wamboo
    5 years ago

    Hi,
    It will be very easy for you if you use NameMapping inside TestComplete.

    It is not recommended to use Sys. to write scripts in TestComplete,

     

    Use NameMapping -> modify recommended property with (use wild cards):

    https://support.smartbear.com/testcomplete/docs/reference/misc/using-wildcards.html

     

    Also,

    Use .Find() on the selected object to avoid performance problems. It is not recommended to start the search process from the beginning of the program object structure.

     

    Debug 🐛this piece of code and change parameters. This is the key to success.