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:
-
Click
.
-
Click
Recording.
-
To define whether you want to record object map entries or XPath locators, select the appropriate recording mode from the
OPT_RECORD_OBJECTMAPS_MODE 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,
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.