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.
For web objects: If your project is configured to use XPath expressions and CSS selectors to locate web objects, the dialog will show the list of available locators (if any) for the specified web object. You can select the needed locator from the drop-down list.
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.
To select a non-onscreen object, such as a
process, enter the object name manually.
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.