Forum Discussion
Hi,
Would be possible for you locate the panel using the contentText? I know that is not the best way but may work....
Temember that we can use ***, then you only have to look for a title or a piece of text.
In this case you will have to use the Extended find
Regards
Lage
- dganov9 years agoStaff
There is one tricky way to use custom attributes in Name Mapping.
1. Map the object of interest using auto name mapping.
All the following steps are to be made on the Name Mapping panel.
2. Find and select this mapped node in Mapped Objects tree.
3. Change its ObjectType property value to something like "MyPanel", so that the node could not be found using the specified properties anymore.
4. Double-click this node - you should see the "Unable to find the object..." dialog. Select "Edit the identification properties..." item. "Update Name Mapping" dialog should appear.
5. Delete all properties from the Selected list using "fast forward" button.
6. Click "Add Property" button, in the Name field specify "ng-reference", in the Type select "Sting", in the Value specify "first-piece" (or another value that corresponds to the node being edited), and click OK. Click Finish in the dialog. If you will see the message that object cannot be found the just click Yes to save settings.
7. Try to highlight this node on screen - TestComplete should find it using new settings.
8. If everything is fine, then you can check "Extended find" for this node, as well as move it to some higher level in the Name Mapping tree (using drag-and-drop), and delete all unnecessary automatically created nodes.