Add Web Element Attributes Dialog

Applies to TestComplete 15.70, last modified on December 17, 2024

You use the Add Web Element Attributes dialog to select a web object, the custom attributes of which you want to use as additional name mapping criteria, on the screen.

To call the dialog, click Add From Screen on the Properties > Open Application > Web Testing > Custom Attributes page of a project or in the Default Project Properties > Project > Open Application > Web Testing > Custom Attributes dialog.

Add Web Element Attributes Dialog

To add object attributes to the list of additional name mapping criteria’s attributes:

  1. Select the needed web object. You can do it in one of the following ways:

    • Drag the target to point to the object

      See instructions

      TestComplete will display the selected object in the Object box and the corresponding available object attributes in the Attributes box.

    • Point and press a shortcut

      See instructions

      TestComplete will display the selected object in the Object box and the corresponding available object attributes in the Attributes box.

    • Enter the object name manually

      Enter the full name, full mapped name or alias of the desired object to the Object box. TestComplete will display corresponding available object attributes in the Attributes box.

    Tips for selecting objects:

    • Using the second approach may be more convenient if you need to manipulate the application before selecting an object. For example, you can open and point to popup windows, tooltips, and other objects that are hidden when being inactive.

    • Instead of selecting the object, you can copy its name from the Object Browser, Object Spy, keyword test, or script code beforehand and paste it into the Object box.

    • To make sure you have selected the correct object, click Highlight. TestComplete will highlight the appropriate object on the desktop screen.

  2. Enable check boxes of the needed custom attributes in the Attributes list.

    Note: The previously-added attributes will be disabled in the Attributes list.
  3. Click OK to apply changes and to close the Add Web Element Attributes dialog. To close the dialog without performing any actions, click Cancel.

See Also

Using Custom Attributes of Web Objects
Project Properties - Custom Attributes Option
Default Project Properties - Custom Attributes Option

Highlight search results