This functionality is supported only if you are using the Classic Agent.
Use the Record Window Declarations dialog box to record descriptions, called window declarations, of the GUI objects in your application and insert them into a declarations file, called an include file (*.inc).
Click
.The declaration is a combination of class, identifier, and tag. As you move the mouse over your application, the contents of the dialog box change to reflect the object under the mouse. When you position the mouse over the object you want to declare and press Ctrl+Alt, the Record Window Declarations dialog box freezes the current contents, in effect, taking a snapshot of the declaration.
Silk Test Classic references the declarations in the include file to identify the objects named in your test scripts. You tell Silk Test Classic which include file(s) to reference through the Use Files field in the Runtime Options dialog box.
The Window Detail area displays the class, identifier, and tag of the object selected in the Window Declaration list and is used to edit the class and identifier of an object.
The Tag Information area displays the components that Silk Test Classic can use to construct the tag for the object. Once you have paused tracking, Silk Test Classic displays the information for the currently selected object in the Window declaration list box. Check the corresponding check box for the components that you want Silk Test Classic to use. By default, Caption, Window ID, and Attributes are checked.
To edit the tag information, first select the object in the Window declaration list box and then edit the tag information for the component in the corresponding field.
Any HTML attribute you want to record, including custom attributes. You may use the ? and * wildcards in attribute values. The * character matches zero or more characters. The ? character matches exactly one character. The following characters are not allowed in attribute names: (space) ~`!@#$%^&*()_-+={[}]|\:;"’<,>.?/
The values of attributes have been tested for up to 900 characters and there is a limit of 4096 characters for the total number of characters you can paste or type into the Attributes field.
Use instead of Paste to Editor, if you want to paste declarations elsewhere in the file or if you write your test scripts with another editor than the one provided with Silk Test Classic.
Click to copy the declarations in the list box to the clipboard. The Record Window Declarations dialog box is cleared. Use to insert the declarations into a different editing window or to insert them into the current window at the location of your choice.
The Window declaration list box displays the declarations you have recorded. The GUI hierarchy shows the class, identifier, and tag of the recorded object and its child (subordinate) objects. The declarations for child objects are embedded within the declaration of the parent (superior) object and are shown indented in the list box.
Press Ctrl+Alt to pause tracking - press these hotkeys to freeze the Record Window Declarations dialog box and capture the contents of the current window. The object that the mouse is over when you press Ctrl+Alt is selected in the Window declaration list box and the tag information of that object is displayed in the Window detail area.
To modify the declaration of an object displayed in the list box, select it. The class, identifier, and tag of the selected object are displayed in the Window detail area, where you can edit this information.
By default, custom objects of class CustomWin are shown in red on color monitors (bold on black-and-white monitors). This highlighting serves as a visual reminder for you to map the class of custom objects to a standard class supported by Silk Test Classic. Also, by default, custom objects of class Ignore are not included in the declarations. To change the default behaviors, click Options.