Use the Object Spy

Relevant for: GUI tests and components

The Object Spy enables you to view the native properties and operations of any object in an open application, as well as the test object hierarchy, description properties, and operations that UFT uses to represent that object.

In this topic:

Access the Object Spy

To access the Object Spy, first open a GUI test or action, or select one in the Solution Explorer.

Then, do one of the following:

Select Tools > Object Spy.

Click the Object Spy toolbar button
.

In the Record toolbar, click the Object Spy button during a recording session.

Keep on Top. Keeps the Object Spy on top while spying on your application.

This button is not relevant for the Remote Object Spy.

Tip: If you don't keep the Object Spy on top, it may become hidden behind your application as you spy. Use the CTRL+TAB keys to switch your application windows around. This option does not work for Windows Runtime applications if you use the SHIFT + Windows key to switch your windows.

Spy on your object

Spy on an object in your application to view or capture properties and/or operations for that object.

Do the following:

If you want to select the object by clicking it, simply click the pointing hand button , and select the object in your application.

If you want to select the object by hovering over it instead of clicking, first toggle on the Hover mode above the toolbar. Then click the pointing hand to switch to your application and hover over your object.

In most environments, the Object Spy highlights the object as your mouse over it, and displays the relevant information, including the hierarchy of test objects related to that object.

If an object in the hierarchy already exists in a repository associated with the active action or component, a repository icon
is displayed in the lower-right corner of the object's icon.

Note: In some environments, you may need to open or expand a combobox or tree-type object before spying to view the correct properties for the object.

Once you click a child object and the object tree is shown in the Object hierarchy tree:

Select another object in the tree to view its properties, values, and operations.

Click Highlight in Application to locate the currently selected object in your application.

View more details

Select an object in the Object hierarchy to view more details in the tabs below.

Toggle between the Properties and Operations tabs to display details for the selected object.

Properties tab

Select the Native or Identification options to toggle between showing the object's native or identification (description) properties and values.

Tips to improve your search results...TOCUnified Functional Testing Help CenterUFT14.50-14.51AllView Local Help CenterView Online Help CenterbackGo back in browser historyforwardGo forward in browser historyRemove search highlightsnext topicGo to next topicprevious topicGo to previous topicPrint the current topicVersion(Undefined variable: _rscC_Basic_Variables.FloatingTocShow)