AWTComponentName Property

Applies to TestComplete 15.63, last modified on April 23, 2024

Description

Use the AWTComponentName property to obtain the name of a Java application’s object as it is defined in the application’s source code. The property is only used if the object meets the following requirements:

  • The object belongs to a Java application that was created with AWT or Swing libraries.
  • The object is a descendant of the java.awt.Component class.

Declaration

TestObj.AWTComponentName

Read-Only Property String
TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section

Applies To

All Java application objects.

View Mode

To view this property in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.

Property Value

A string holding the component name. This is the same string that is returned by the getName method in Java.

Remarks

The AWTComponentName property is only available if the Java Application Support plugin is installed and the application under test is a Java application created with AWT or Swing libraries. Otherwise, this property is absent in the object’s property list.

See Also

Testing Java Applications - Overview
AWTComponentIndex Property

Highlight search results