Forum Discussion
Abramova
Staff
14 years agoHi,
When you obtain a mapping item or alias for the first time, TestComplete searches for the object in the object tree and stores a reference to this object. Then, when you use the mapping item or alias in tests, TestComplete uses the stored reference to forward the method calls to the mapped object. If the object is recreated, the reference becomes invalid. In such cases, you can update the reference to the underlying object by calling the NameMappingItemObj.RefreshMappingInfo or AliasObj.RefreshMappingInfo method.