Forum Discussion
Dmitry_Nikolaev
15 years agoStaff
Hi Philip,
>>>
The overlapped objects means some objects are recreated in the runtime, or the newly created objects which have same reference(classname, wincaption, or index) with the previous ones.. but in different position.
<<<
If an object is recreated, you need to refresh the mapping information by calling the RefreshMappingInfo method right after the recreation.
If a new object is created, you need to modify the name mapping scheme in such a way that TC can uniquely identify the necessary object (don't forget to call RefreshMappingInfo before obtaining the new object).
>> What I mean is can I create a new name mapping definition for objects?
As far as I understand, you need to add items to the name mapping scheme from your script. You can do this by using the AddNamedChild method (see the Methods and Properties Added to Mapped Objects help topic).
However, we do not recommend that you use this. More convenient approach is to use the FindChild method to find the necessary object by specific property values.
Related Content
- 3 years agoMarkSchofer
- 8 years agoyaseenmd
Recent Discussions
- 2 hours agojstaehlin
- 20 hours agoAivanitskiy
- 23 hours agonastester