Setting Locator Preferences

Specify the hot key combination to pause recording and the mode you want to use to record locators.

  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 set the hot key combination to use to pause recording, select one of the key combinations from the Identify locator hot keys list box. By default, Ctrl+Shift is the hot key combination. However, if you are a Silk Test Classic user, you may prefer to use Ctrl+Alt.
  5. From the Identify locator mode list box, select the mode that you want to use to record locators.
    • Click – To identify an object that you want to record by clicking it, use this mode. By default, Silk Test Workbench captures locators using this mode, which provides optimal performance. However, the application does not stop when a locator is captured. As a result, this mode works best when the screen of the application under test does not change rapidly. For example, if you are testing a Web site where multiple objects display simultaneously, use the hot key mode to record the test.
    • Hot Key – To identify an object that you want to record by pressing the hot key combination, use this mode. This mode pauses the application when you capture a locator. For example, if you are testing a Web site where multiple windows open and close, use this mode to pause the application to ensure that you capture the correct window. By default the hot key combination is Ctrl+Shift.
  6. 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. No object map entries are recorded.
    • 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.
  7. Click OK.