Edit Class Attributes Dialog Box

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

Use to select which attributes you want to record for selected classes in browser applications.

Click Options > Class Attributes or click Edit Class Attributes on the Record Window Declarations dialog box.

Class information

Class
Default as well as available Html classes such as HtmlCheckBox and HtmlTable. Select the class for which you want to set the list of attributes that Silk Test Classic records. Silk Test Classic provides a Default class that is set by default to record the ID attribute only and applies it to all classes. For example, if there are no other attributes defined for a class such as HtmlText, the HtmlText class records whatever attribute is selected for the <Default> class, if any. At this time, the only class available for Java SWT is Default. When you specify the Default class for Java SWT, the attributes that you select apply to all classes.

Attribute selection

Defined attributes
Lists the attributes that are available for you to record.
Class attributes
Lists the attributes that you have selected for Silk Test Classic to record for the listed class. Silk Test Classic can only record a particular attribute if that attribute is defined for the Html object you are recording. For example, you have set up your Class Attributes list in the Edit Class Attributes dialog box so that Silk Test Classic records only the "name" attribute for the HtmlImage class. Silk Test Classic records the "name" attribute for HtmlImage objects as long as the HtmlImage objects actually have a …name="value" attribute defined. If there is no name="value" attribute defined for the HtmlImage, Silk Test Classic records nothing.
>>
Moves the selected attribute from the Defined Attributes pane to the Class Attributes pane. You may only select a single attribute at a time.
<<
Moves the selected attribute from the Class Attributes pane to the Defined Attributes pane. You may only select a single attribute at a time.
Add text

Is the blank text field. Type the name of the new attribute in this field, then click Add. There are two ways to insert attributes into the Class attributes field on the Edit Class Attributes dialog box. You may type the name or you can copy and paste the name from the text editor.

There is a 62 character limit to attribute names. If you are typing a long name, the field stops accepting characters after the 62nd character. If you paste in a long name, the name is truncated at 62 characters.

The following characters are not allowed in attribute names:

(space) ~`!@#$%^&*()_-+={[}]|\:;"’<,>.?/

Add
Click to add the new attribute to the list of Defined attributes for the specified class. After you have used Add to include the attribute, use the Move Up and Move Down buttons to indicate the order in which you want the attributes to be recorded.
Remove
Click to remove the selected attribute from the list of Defined attributes for the specified class.
Move Up
Click to move the selected attribute up the list of captured attributes. You use this list to indicate the hierarchy of how the attributes are recorded. The attributes are recorded in the order you specify here.
Move Down
Click to move the selected attribute down the list of captured attributes. You use this list to indicate the hierarchy of how the attributes are recorded. The attributes are recorded in the order you specify here.
OK
Click to save your work and to close the dialog box. Silk Test Classic will now record the new attribute tags that you have entered. When you click OK, the information in the Edit Class Attributes dialog box is saved to the attributes.ini file. We strongly recommend that you only use the Edit Class Attributes dialog box to edit the information within this file.