Recording Window Identifiers

This functionality is supported only if you are using the Classic Agent.

Use the Record Window Identifiers dialog box to record the fully qualified name of a GUI object in your test application. You can then use this name as the identifier for the object in your scripts.

If you are recording a test that uses hierarchical object recognition You do not have to bring up your test frame file to find the correct identifier for the object.

  1. Click Record > Window Identifiers. The Record Window Identifiers dialog box appears.
  2. Optional: Check the Keep on top check box to keep the Record Window Identifiers dialog box in the foreground while you are moving the mouse cursor over the application under test. By default, this is checked.
  3. Position the cursor over the GUI object that you want to record. The Window identifier field displays the name of the GUI object on which the mouse cursor is currently located.
  4. Press Ctrl+Alt to record the identifier of the object on which the mouse cursor is currently located.
    Note: For any application that uses Ctrl+Shift as the shortcut key combination, press Ctrl+Shift.
    The recording pauses and the identifier displays in the Window identifier field.
  5. Optional: Edit the window identifier. For example, remove unnecessary attributes from the identifier.
  6. Choose one of the following:
    • Click Paste to Editor to paste the window identifier into the open file.
    • Click Copy to Clipboard to copy the window identifier to the clipboard. You can click Edit > Paste in the Silk Test Classic menu to paste the code into the location of your choice in the current window, or even into a different window.
  7. Optional: Click Resume Tracking to continue recording.
  8. Click Close.