Enabling the Apple Safari browser to perform Web UI tests on macOS
You can record and play back Web UI tests in the Apple Safari browser to test the web applications. To record Web UI tests in the Safari browser, you must first enable the browser and then record tests.
About this task
Procedure
-
Enable the remote automation feature by performing the following steps:
- Click Show Develop menu in the menu
bar checkbox.
The Develop menu is displayed in the menu bar.
tab, and then select the - Click the Develop menu, and then select Allow
Remote Automation.
The remote automation feature is enabled.
- Click Show Develop menu in the menu
bar checkbox.
-
Install the Web UI extension for the Safari browser by performing the following
steps:
- Navigate to the SafariWebExtension.zip file within the shared installation directory. For example,<IMShared>/plugins/com.ibm.rational.test.rtw.webgui.browextension.safari_<version string>/SafariWebExtension/SafariWebExtension.zip.
- Double click the compressed file.
The file is automatically extracted and saved in your system.
- Double-click the extracted file.
The Web UI extension is automatically installed.
Note: If an error message is displayed, perform the following steps:- Click
You can view an error message in the Allow apps downloaded from: section.
. - Click the Allow button.
The Web UI extension is unblocked, and you can successfully open the extension.
- Click
-
Verify whether the extension is installed, and the required browsers are enabled by
performing the following steps:
- Open the Safari browser.
- Click
The installed extension is displayed on the Extensions page.
. - Select the Web UI extension.
The details related to permissions for the selected Web UI extension are displayed on the right pane of the Extensions page.
- Perform one of the following steps:
- Click the Edit Websites… button.
You can allow the Web UI extension to read and alter specific websites that you visit by entering the list of corresponding URLs.
- Click the Always Allow on Every Website… button.
You can allow the Web UI extension to read and alter all websites.
- Click the Edit Websites… button.