Forum Discussion
Dmitry_Nikolaev
Staff
15 years agoHi Kevin,
The best way to avoid problems with ambiguous recognition is to always give unique native names to all objects in the tested application. Your example works with process objects. In this case, the best way to get rid of possible problems is to avoid running more than one instance of a process. If this is impossible, you can map the needed process object by its index if it is always the same or by its command line if the needed process is always run with a specific parameter.
If you get the 'Object Not Found' error, you can find information on how to find the cause of it in the Handling the 'Object Not Found' Errors help topic.