This functionality is supported only if you are using the Classic Agent.
The tag is the actual name of the object, as opposed to the identifier, which is the logical name. Silk Test Classic uses the tag to identify objects in the application under test when recording and when executing test cases. Test cases never use the tag to refer to an object; they always use the identifier.
Alternatively, you can use locator keywords, rather than tags, to create scripts that use dynamic object recognition and window declarations. Or, you can include locators and tags in the same window declaration.
There are several types of tags:
Tag Type | Description |
---|---|
Caption | The caption or label as it appears to the user. |
Prior text | Closest static text above or to the left of the object. Prior text tags begin with the ^ character. |
Index | The order (from top left to bottom right) in relation to its sibling objects of the same class. Index tags must begin with the # character. |
Window ID | The GUI-specific internal ID of the object. Window ID tags begin with the $ character. |
Location | The physical location (coordinates) of the object. Location tags begin with the @ character. |
Attributes | The attribute name(s) of the Html object. If the object is not an Html object, nothing is recorded. |
Not all types of objects have all tags. Dialog boxes, for example, do not have window IDs, so they cannot have a Window ID tag.
In the Record Window Declarations dialog box, if you record declarations for the Case sensitive check box in the Text Editor’s Find dialog box, the possible tags for the check box include:
Tag Type | Value | Comments |
---|---|---|
Caption | Case sensitive | |
Prior text | ^Find What: | "Find What" is the nearest static text above or to the left of the check box |
Index | #1 | The Case Sensitive check box is the first check box in the dialog |
Window ID | $1041 | |
Location | @(57,75) | |
Attributes | [blank] | Attributes are only recorded for Html objects. |
These are the possible tags that can be used by Silk Test Classic to identify the Case sensitive check box when recording or executing test cases.
It is helpful to understand how Silk Test Classic identifies tags in browsers. For additional information, see Comparison of DOM and VO.