You use the Pick Object dialog to select an object on screen using the target glyph or the Point and fix tool.
Note for mobile testing: To select 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 specify the object in one of the following ways:
Pick the object with the target glyph
Drag the target glyph () to the desired onscreen object and drop it once a red frame appears around the object.
Point to the object and press a shortcut
Click the button, activate the desired object in the application and position the mouse pointer over it. When a red frame appears around the object, press the Select object shortcut, Shift+Ctrl+A. (The shortcut can be changed in the Global Shortcuts options.)
Enter the object name manually
Enter the full name, full mapped name or alias of the desired object into the Object box and press Enter.
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.
To select a non-onscreen object, such as a
process, enter the object name manually.
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.
Despite the way you specify the object name, you can change or correct it directly in the Object box.
If the Map object names automatically setting is enabled, TestComplete will automatically map the specified object to a custom name (if it does not have one yet) and display this name in the Object box. Otherwise, TestComplete will use the default object name.
To use the specified object’s name and continue the operation you performed, click OK. To close the dialog without performing any actions, press Cancel.