Working with Apple Safari on a remote Mac computer

You can use UFT to test Web applications on an Apple Safari browser that is running on a remote Mac computer. UFT uses the WebSockets protocol to connect to the Mac computer that you specify. Note that only Web test object steps can run on Safari. All other steps, including Utility object steps, such as SystemUtil.Run, run locally on the UFT computer.

To test Web applications on the Safari browser, install the UFT Connection Agent and the Unified Functional Testing Agent Safari browser extension on your Mac computer. For details on how to do this, see The UFT Connection Agent for Mac computers.

Recording steps and learning objects (in the Object Repository Window or Manager) are not supported on the Safari browser. However, use the Remote Object Spy on a Safari browser to view the properties and operations of Web controls, and optionally, add the corresponding test objects to your object repository.

It may be more convenient to create and edit your object repositories, tests and components working with a supported browser installed locally on the UFT computer, and then connect to a remote Mac computer, fine-tune your tests, and run them on Safari.

Tip: Use Google Chrome to create, edit, and debug your tests and components, as Chrome and Safari render Web pages similarly.

Once your basic test is designed, connect UFT to a remote Mac computer running Safari, and fine-tune or debug your test based on the object properties available on Safari:

  • Use the Remote Object Spy to see how UFT recognizes the objects in your application.

  • View object properties using statement completion for the Object method.

    Note: Statement completion for the Object method is only available if the connection to the remote Mac is fast enough.

  • Create standard checkpoints and output value steps on objects displayed in the Safari browser. Use the Design > Checkpoint and Design > Output Value > Standard Output Value commands.

For details about how to connect UFT to the remote Mac computer, see Connect to a remote Mac computer.

For additional details about working with UFT and the Safari browser, see Known Issues - Google Chrome and Apple Safari.