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 Remote Object Spy is similar in ability to the Object Spy. For details, see Use the Object Spy.

Note: Some steps are performed in UFT, and others are performed on the Mac computer. Perform any steps on the Mac directly on the Mac computer, using a remote access program.

Access the Remote Object Spy

Do the following before you start:

  • In UFT, ensure that UFT is connected to a Remote Mac computer. Use the Remote Connection button in UFT's toolbar.
  • On the Mac, open Safari to the page containing the object on which you want to spy. Make sure that the relevant object is visible.

To access the Remote Object Spy:

  1. Ensure 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

Select the application object

Once your Remote Object Spy is open, use your mouse on the Mac to select the object you want to spy on.

  1. In UFT, click the pointing hand. On the Mac, this changes the UFT Agent Extension icon in the Safari toolbar to a UFT Spy button .

    Spy mode is now active.

    Tip: If you need to, suspend Spy mode while you access your object. For example, you may need to open Web pages on the Mac, or move applications around.

  2. When Spy mode is active, mouse over Web objects in Safari to display the relevant Web element's class and html tag properties.

    Use these details to identify the object you want to Spy, and then click that object.

    The Remote Object Spy captures the object's properties and hierarchy, and displays the information in UFT.

Back to top

Use your selected object and details

Once your object is displayed in UFT, do any of the following:

Add your object to an object repository

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

Note: The object repository dropdown list is read-only and you cannot select another repository from the list.

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.

Create a default step

Drag an object from the Remote Object Spy directly into your test or component for UFT to create a default step with the object.

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.

View object details

In the Remote Object Spy, click around to view the test object's properties and operations, and its native properties and operations.

Select other test objects currently displayed in the Object hierarchy tree to view their properties, values, or operations.

Back to top

See also: