Forum Discussion
YMinaev
Staff
15 years agoHi,
TestComplete uses values of properties by which an actual object is mapped to identify it. In your case, for the first time, you had the following identification properties for the mapped object that corresponds to your button:
ObjectType = Button
idStr = dijit_form_Button_53
ObjectIdentifier = dijit_form_Button_53
innerText = ?Add Resource Pool
When property values of your button change to:
ObjectType = Button
idStr = dijit_form_Button_78
ObjectIdentifier = dijit_form_Button_78
innerText = ?Add Resource Pool
TC will fail to identify your button using the current set of the identification properties as your button now has different values for idStr and ObjectIdentifier. That's why, you had to remap your button, and TC gave it another name.
To avoid the issue, you need to follow the steps below:
1. Delete the existing mapped object.
2. Remap your button using the following set of identification properties:
ObjectType = Button
idStr = dijit_form_Button*
ObjectIdentifier = dijit_form_Button*
innerText = ?Add Resource Pool
3. In the Aliases tree, give the object that corresponds to the mapped object the name that is currently used in your test.
What this will give you is that you will not have to remap your button again.
For objects like Web Buttons the default name changes every time a new instance of Internet Explorer is launched (Please refer the attached screen shots). Here the same button object have different Mapped Name in different instances of web browser (IE-8).
TestComplete uses values of properties by which an actual object is mapped to identify it. In your case, for the first time, you had the following identification properties for the mapped object that corresponds to your button:
ObjectType = Button
idStr = dijit_form_Button_53
ObjectIdentifier = dijit_form_Button_53
innerText = ?Add Resource Pool
When property values of your button change to:
ObjectType = Button
idStr = dijit_form_Button_78
ObjectIdentifier = dijit_form_Button_78
innerText = ?Add Resource Pool
TC will fail to identify your button using the current set of the identification properties as your button now has different values for idStr and ObjectIdentifier. That's why, you had to remap your button, and TC gave it another name.
Can a web button when remapped at different instances of web browser give the same default name?
To avoid the issue, you need to follow the steps below:
1. Delete the existing mapped object.
2. Remap your button using the following set of identification properties:
ObjectType = Button
idStr = dijit_form_Button*
ObjectIdentifier = dijit_form_Button*
innerText = ?Add Resource Pool
3. In the Aliases tree, give the object that corresponds to the mapped object the name that is currently used in your test.
What this will give you is that you will not have to remap your button again.