Deleting an Object Map Item

You might want to delete an item from an object map if it no longer exists in the test application or for some other reason.

  1. Choose View > Asset Browser or select Get Started > Asset Browser in the Start Screen.
  2. From the Asset Types list, select Object Map. Any existing object maps for the selected project display in the right pane.
    Tip: If you do not see the object map that you want to edit, ensure that the correct project is selected in the Active Project list.
  3. Double-click the object map that includes the object map item that you want to delete. The object map displays a hierarchy of the object map items and the locator associated with each item.
    Note: If another user is currently editing the object map that you select, a message box notifies you and names the user who currently has the object map locked.
  4. Click Edit. By default, the object map is read only. Clicking Edit gives you read/write access and ensures that no other users can edit the entries while you are modifying them. You can also press F2 to edit the currently selected field in the object map. The Edit button changes to Revert. If you want to undo any changes that you make during this session, click Revert.
  5. Navigate to the object map item that you want to delete. For example, you might need to expand a node to locate the object map item that you want to delete.
  6. Choose one of the following:
    • Right-click the object map item that you want to delete and choose Delete, or choose Delete tree to additionally delete all child items of the object map item.
    • Click the object map item that you want to delete and then press DEL, or press CTRL+DEL to additionally delete all child items of the object map item.
    After deleting an object map item, the focus moves to the next item in the object map.
  7. Perform one of the following steps:
    • Click Save to save your changes and continue working on the object map.

      Silk Test Workbench saves your changes as a new version and the object map mode goes back to read only.

    • Click Save and close to save your changes and exit the object map.

      Silk Test Workbench saves your changes as a new version and the object map is available for other users to modify.

If any existing visual tests or scripts use the object map item or its children that you deleted, you must manually change any references to that object map item in the visual tests or scripts.