Turning Object Maps Off and On

You can configure Silk4NET 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 Silk4NET > Edit Options.
  2. Click Recording.
  3. Check the Record object maps setting. By default, Silk4NET records the alias from the object map during recording. If you set the Record object maps setting unchecked, Silk4NET records the locator name during recording. You can turn the Record object maps setting off and on as you find necessary. However, when a test is recorded with locators, you must re-record it in order to use object map items.
Note: In addition to the XPath attributes, Silk4NET 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 Silk4NET. 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.