Add New Object Class Dialog

Applies to TestComplete 14.0, last modified on January 23, 2019

To select a window or control that you want to map to a supported control class, use the Add New Object Class dialog.

To call the dialog, click Add From Screen on the Properties > Object Mapping page of a project or in the Default Project Properties > Project > Object Mapping dialog.

Add New Object Class Dialog

Note for mobile testing: To add a class of an object in a mobile application, select the object on the Mobile Screen (make sure the Mobile Screen window is not hidden before selecting the object). Also note that the application under test and the mobile device, where the application is running, must be prepared for testing in order for TestComplete to be able to access the application’s objects.

You can select the target object in one of the following ways:

Tips for selecting objects:

  • You may find the second technique more convenient than using the target icon, because you can manipulate applications before actually selecting an object. For example, you can open the tested application window containing the desired control and so on. Unlike using the target icon, with this technique, you can point to popup windows, tooltips, and other objects that are hidden in the application when being inactive.

  • Instead of selecting the object, you can copy its name from the Object Browser, 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 or in the Mobile Screen window.

To add the specified class name to the Object Mapping settings, click OK. To close the dialog without performing any actions, click Cancel.

See Also

Object Mapping
Project Properties - Object Mapping Options
Default Project Properties - Object Mapping Options
About Mobile Screen Window
Selecting an Object on the Mobile Screen (Android Testing)
Select an Object on the Mobile Screen (iOS Testing)
Instrumenting Android Applications - Overview
Preparing iOS Applications
Testing Mobile Applications

Highlight search results