The parent object hierarchy of the selected object does not match the expected hierarchy, Please re-map the object
manually to reflect the changes.
How do I re-map the object manually to reflect the changes?
I'm also seeing "item" and "item1" at the end of the string.
I'd suggest trying the following two approaches:
The Name Mapping editor contains two trees: Mapped Objects and Aliases. The Mapped Objects tree displays the object hierarchy as it exists in the system. The Aliases tree displays the object hierarchy as it is used in tests. You can try to change the Mapped Object tree, but keep the Aliases tree unchanged:
* Open your tested application and make sure the that "problematic" object is visible on the screen.
* Click the Map Object From Screen item on TestComplete's toolbar and map the object using the subsequent dialog. See http://support.smartbear.com/viewarticle/27756.
* The new mapped object will be added to the Mapped Objects and Aliases trees of the Name Mapping editor.
* In thee Aliases tree, delete the alias of the problematic object. Then, put the newly added alias to the position, where the problematic alias was. To change the alias position within the tree, simply drag it to the needed place.
You can also drag items from the Mapped Objects tree to the Aliases tree. After you add items this way, you can change their location within the Aliases tree by dragging them to the needed position.
2) Another solution is to use the Extended Find feature:
* Open the Name Mapping editor and expand the Mapped Objects section in it.
* Right-click somewhere within the column header area and select Field Chooser from the context menu. A list with column names will pop up.
* Drag the Extended Find column from the list to the column header area of the Mapped Objects section.
* Find the problematic object in the Mapped Objects tree and then select the Extended Find check box for the object.
* Save the changes.
As I have said above, the Mapped Object tree represents the object hierarchy as it exists in the system. When the Extended Find attribute is disabled, TestComplete only searches at that level at which the object resides in the tree. When you enable the attribute, you command TestComplete to search for an object among other children of the same parent at any level. This will increase the time needed to find the needed object, but should keep your tests functioning.
This thread is almost 8 years old now. Please post your question as a new question. Versions have changed, tech has changed. It might be a completely unrelated problem.