ZXQA
5 years agoOccasional Contributor
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...
- 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.