Forum Discussion
John,
You are using the * wildcard to replace the variable part of the name. The name becomes a kind of a search pattern that TestComplete uses to find the appropriate object. I suspect that in your case, the tested application contains several objects, whose names match the pattern you are using. In this case, TestComplete uses the first found object. If it differs from the needed object, you have an impression that the object is not found.
If so, I'd suggest that you identify the needed object by its properties, for instance, by title, coordinates, id, the number of child objects, and so on.
You can call the FindChild method of your test process to find the object by its property values.
Alternatively, you can map the object's name to an alias and address the object in tests by the alias (see Name Mapping). The mapping criteria may include object properties or properties of its child objects.
Related Content
- 12 years agoCBleunven
- 4 years agobryanhirst15223
- 5 years agosree2011
- 9 months agooriShalhon
Recent Discussions
- 24 hours agodhundley