Turning Object Maps Off and On

You can configure Silk Test Workbench to use the locator name or the alias from the object map during recording.

To use the alias from the object map during recording:

  1. Click Tools > Options.
  2. Click the plus sign (+) next to Record in the Options menu tree.
    The Record options display in the right side panel.
  3. Click Locator.
  4. To define whether you want to record object map entries or XPath locators, select the appropriate recording mode from the Record object map entries list:
    • Object map entries for new and existing objects. This is the default mode.
    • XPath locators for new and existing objects.
    • XPath locators for new objects only. For objects that already exist in an object map, the object map entry is reused. Choosing this setting enables you to create object maps for the main controls of an AUT, and to persist these object maps while creating additional tests against the AUT.
Note: In addition to the XPath attributes, Silk Test Workbench uses additional attributes of the element when merging object maps during locator recording. However, attributes that might lead to ambiguous usage of object map IDs in a recorded script are not used to map locators to existing object map entries.
Note: When you enable the Record object maps setting, object map item names display in place of locators throughout Silk Test Workbench. For instance, if you view the Application Configurations category in the Properties pane, you will notice that the Locator box shows the object map item name rather than the locator name.