Use the Remote Object Spy

Relevant for: GUI tests and components

Use the Remote Object Spy when working with Web applications running in Safari on a Remote Mac computer. The object information and abilities provided by the Remote Object Spy are similar to those provided by the Object Spy.

Note: You perform some of the steps in UFT and some on the Mac computer. You can perform the Mac steps directly on the Mac computer or using a remote access program, such as Virtual Network Computing (VNC).


  1. In UFT: Make sure that UFT is connected to a Remote Mac computer, using the Remote Connection button in UFT's toolbar.

  2. On the Mac computer: Open Safari to the page containing the object on which you want to spy, and make sure that the relevant object is visible.

Back to top

Open the Remote Object Spy dialog box

  1. In UFT, make sure that a GUI test or action is in focus in the document pane or selected in the Solution Explorer.

  2. In the toolbar, click the down arrow near the Object Spy button , and select the Remote Object Spy button.

Back to top

Use the mouse to select the application object

When you click the pointing hand in UFT...
  • When you click the pointing hand in UFT, the Unified Functional Testing Agent Extension icon in the Safari toolbar on the Mac changes to a UFT Spy button , indicating that the Spy mode is active.

    You may want to suspend the Spy mode and use your mouse as usual on the Mac, to load Web pages, move applications, or perform any other steps necessary to display the object on which you want to spy.

    • Click the Pause/Resume UFT Spy toggle button in the Safari toolbar to pause and resume the Spy session. This affects all open Safari browsers simultaneously.

    • Hold the Mac's Command key to momentarily suspend the Spy mode.

      Tip: The Command key may be mapped to your Windows start key, or to the ALT key, depending on how you connect to your Mac computer.

While the Spy mode is active... As you mouse over Web objects in Safari, the Object Spy highlights the object and displays the relevant Web element's class and html tag properties. Use this information to select the object on which you want to Spy.
When you click a Web object in Safari... the Remote Object Spy captures its properties and hierarchy, and displays the information in UFT.

Back to top

View object details or add it to your object repository

Do any of the following:

View test object properties

Select the various radio buttons and tabs to view the details of the object's test object properties and operations and its native properties and operations.

View properties of objects in the tree Select other test objects currently displayed in the Object hierarchy tree, and view their properties, values, or operations.
Highlight an object

Click Highlight in Application to highlight the object in Safari on the Mac.

UFT highlights only objects that are currently visible on the Mac computer.

Add objects to an object repsitory

Click Add to Repository to add the object currently selected in the Object hierarchy tree to the object repository.

Drag an object from the Object Spy directly into your test or component. UFT creates a step for the dragged object.

Copy description properties

Click Copy description properties to Clipboard to copy all of the properties and values for the object currently selected in the Object hierarchy tree. You can paste the copied data from the Clipboard into any document.

Back to top