Captions for Objects

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

By default, Silk Test Classic follows these steps to create a Caption tag for an object:

  1. Silk Test Classic uses the literal label or caption of the object, if there is one.
  2. If the object has a sibling object with the same label or caption, Silk Test Classic appends the object’s index number to the tag. The index number is the object’s order of appearance in relation to other sibling objects of the same class, from top left to bottom right within the parent object.

    For example, if a dialog box has two objects labeled Find, the tag of the one nearest the top left of the dialog box is Find[1] and the tag of the one nearest the bottom right of the dialog box is Find[2].

  3. If the object does not have a label or caption, Silk Test Classic uses the index number.

    For example, if a dialog box contains two unnamed text boxes, the text box closest to the upper left corner of the dialog box has the tag #1, and the other has the tag #2.