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 One, and others are performed on the Mac computer. Perform any steps on the Mac directly on the Mac computer, using a remote access program.
In UFT One, ensure that UFT One is connected to a Remote Mac computer:
Click the ALM Connection down arrow in the UFT One toolbar and select Remote Connection .
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 Identification Center toolbar button, and select the Remote Object Spy option.
Alternatively, you can spy on objects in Safari on a remote Mac using the Remote Object Spy in the OIC. This enables you to spy on multiple objects at a time. For details, see To spy on a remote Mac computer.
Once your Remote Object Spy is open, use your mouse on the Mac to select the object you want to spy on.
In UFT One, click the pointing hand. On the Mac, this changes the UFT One Agent Extension icon in the Safari toolbar to a UFT One 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.To suspend Spy mode:
Pause spying on all open Safari browsers
Click the Pause/Resume UFT One 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 One.
Once your object is displayed in UFT One, 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 One to create a default step with the object.
Click Highlight in Application to highlight the object in Safari on the Mac.
UFT One 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.
Remote Object Spy not working after running a recorded test
After you run a recorded test on an application, the Remote Object Spy may not work when you use it to spy on the application again.
Close the Remote Object Spy dialog box.
Go to Safari and click the UFT One Remote Agent icon in the Safari toolbar.
Reopen the Remote Object Spy and try again.
If the Remote Object Spy still does not work, repeat the workaround again.