Locator Spy Dialog Box

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

Use the Locator Spy to record a locator keyword or window declarations.

Click Record > Window Locators.

Locator
Displays the XPath query string for the object on which the mouse rests when you press Ctrl+Alt or Ctrl+Shift. After capturing the identifier, you can edit it in this box.

Silk Test Classic does not verify whether the locator string is unique. We recommend that you ensure that the string is unique. Otherwise additional objects might be found when you run the test. Furthermore, you might want to exclude some of the attributes that Silk Test Classic identifies, because the string will work without them.

Stop Recording Locator
Click to capture the locator that is currently displayed in the Locator field.
Validate Locator
Click to highlight the locator in the test application.
Paste Hierarchy to Editor
Click to paste the window declarations into the open Silk Test Classic file. The hierarchy that displays in the Locator Details section is copied.
Copy Hierarchy to Clipboard
Click to copy the window declarations to the clipboard. Use Edit > Paste to insert the code into a different editing window or to insert it into the current window at the location of your choice. The hierarchy that displays in the Locator Details section is copied.
Paste Locator to Editor
Click to paste the locator into the open Silk Test Classic file. The content of the currently active text field is copied.
Copy Locator to Clipboard
Click to copy the locator to the clipboard. Use Edit > Paste to insert the code into a different editing window or to insert it into the current window at the location of your choice. The content of the currently active text field is copied.