When items in an object map have no consistent parent object, you can group these elements by adding a new tree item with
the locator ".", which is the locator for the current element in Xpath.
Warning: Grouping object map items affects every script that uses these items. Every
script that uses these items must be changed manually to use the new locators.
In the
Package Explorer, click on the
Object Maps folder of the project in which the object map that you want to change is located.
Choose one of the following:
Double-click the object map that you want to edit.
Right-click the object map that you want to edit and choose
Open.
The object map displays a hierarchy of the object map items and the locator associated with each item.
Right click on the tree item below which you want to add the new structuring item and choose
Insert New.
Double click the
Item name field of the new object map item.
Type the item name that you want to use and then press
Enter.
If you use an invalid character, the item name displays in red.
The new name displays in the
Item name list.
Click the
Locator path field of the new object map item and type
. into the field.
Press
Enter.
For every object map item that you want to relocate to a new location under the new item:
Right click on the item that you want to relocate and choose
Cut tree.
Right click on the new structuring item and choose
Paste.