Locator Attributes for Java AWT/Swing Controls

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

When a locator is constructed, the attribute type is automatically assigned based on the technology domain that your application uses. The attribute type and value determines how the locator identifies objects within your tests.

Silk Test Classic supports the following locator attributes for Java AWT/Swing controls:
  • caption
  • name
  • accessibleName
  • priorlabel (For controls that do not have a caption, the priorlabel is used as the caption automatically. For controls with a caption, it may be easier to use the caption.)
  • Swing only: All custom object definition attributes set in the widget with SetClientProperty("propertyName", "propertyValue").
Note: Attribute names are case sensitive. Attribute values are by default case insensitive, but you can change the default setting like any other option. The locator attributes support the wildcards ? and *.