Grouping Elements in Object Maps

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.
  1. 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.
  2. 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.
  3. Right click on the tree item below which you want to add the new structuring item and choose Insert New.
  4. Double click the Item name field of the new object map item.
  5. 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.
  6. Click the Locator path field of the new object map item and type . into the field.
  7. Press Enter.
  8. For every object map item that you want to relocate to a new location under the new item:
    1. Right click on the item that you want to relocate and choose Cut tree.
    2. Right click on the new structuring item and choose Paste.
  9. Press CTRL+S to save your changes