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.
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:
- Ensure that a GUI test or action is in focus in the document pane or selected in the Solution Explorer.
- In the toolbar, click the down arrow near the Object Spy button , and select the Remote Object Spy button.
Once your Remote Object Spy is open, use your mouse on the Mac to select the object you want to spy on.
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.Click for details about how to suspend Spy mode.
Do one of the following:
Pause spying on all open Safari browsers
Click the Pause/Resume UFT Spy toggle button in the Safari toolbar
Momentarily suspend Spy mode
Hold the Mac's Command key .
Note: 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.
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.
Once your object is displayed in UFT, do any of the following:
- Add your object to an object repository
- Copy description properties
- Create a default step
- Highlight an object
- View object details
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.
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.
Drag an object from the Remote Object Spy directly into your test or component for UFT to create a default step with the 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.
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.