This topic lists known issues when using UFT One to test applications running in Apple Safari.
The following table lists the known issues about functionality and settings when working with Safari:
For example, this would include a Web page that replaces the JSON object.
|Link fonts and colors||
The font and color properties for link objects contain different values in different browsers.
Therefore, if you create standard checkpoints in Microsoft Internet Explorer and select the font and color properties, running these checkpoints in Safari may cause the checkpoints to fail.
If you have multiple Safari users defined, you must delete all users.
Unsupported UFT One functionality in Safari
The following functionalities are not supported when working with the Safari browser:
Recording. Recording steps on Safari is not supported.
Learning objects. Learning objects in the Object Repository Window or Object Repository Manager is not supported. Instead, learn objects using the Remote Object Spy.
Maintenance Mode is not supported for Safari.
Active Screen. Creating an Active Screen or using the Update Run Mode to update the Active Screen is not supported in Safari.
Non-standard checkpoints and output values are not supported. This includes File Content checkpoints and output values, Text checkpoints and output values, and Bitmap checkpoints.
Page checkpoints, however, are supported. For details, see Page checkpoints.
Testing Web-based SAP applications is not supported on Safari.
Unsupported Safari functionality
Safari caching issues: When your script performs an operation, goes back to the previous page, and then attempts to recognize a web object, UFT One cannot recognize objects.
This is caused by Safari's caching functionality. For more details, see the Apple developer forum.
Workaround: Refresh the page before trying to identify objects.
Test objects, methods and properties
Only Web test object steps can run on Safari. All other steps run locally on the UFT One computer, including Web 2.0 test objects or Web Add-in Extensibility-based test objects.
Additionally, the following specific test objects and test object methods are not supported when running on Safari:
The following known issues exist when working with Safari:
When using Safari, the innertext, outertext, innerhtml and outerhtml property values may differ from other browsers.
Therefore, using these values in parameters or running checkpoints that use these property values may cause the steps to fail.
The following table lists the known issues about page checkpoints when working with Safari:
Page checkpoints may fail when running on Safari because of differences in browsers.
For page checkpoints this is related to differences in the handling of casing in HTML source files.
|Load time property values||
The value of the load time for Page and Frame test objects is always 0 when running on Safari.
In Page checkpoints, the load time property is selected by default, therefore Page checkpoints may fail when running on Safari.
Workaround: Deselect the load time property in Page checkpoints that need to run on Safari.
The following table lists the known issues about run sessions when working with Safari:
|Opening a new browser tab||
During a run session, steps that click on a Web object that is supposed to open a new browser tab fail to open the new tab.
Workaround: Disable the popup blocker in Safari. (Safari > Preferences > Security, clear the Block pop-up windows check box).
When running tests or components on Safari, recovery scenarios are not supported.
|Mouse replay types||
Running tests or components on Safari using the Mouse replay type is not supported.
Make sure that Event is selected as the Replay type in the Run settings section of the Web > Advanced options pane (Tools > Options > GUI Testing tab > Web pane > Advanced node).
|Back / Forward operations||
Performing Back or Forward options on Safari version 9 (El Capitan) causes unexpected behavior in UFT One.
|Wait for page to load||When working with multiple tabs, you may need to add Wait steps for your web page to fully load before UFT One continues with the next step. Otherwise UFT One may use a previously opened tab instead of the intended tab.|
|Smart identification||Different Smart Identification properties may be used for the same objects in different steps. Make sure that all the Smart Identification properties are aligned before running your test.|
Remote Mac connections
The following table lists the known issues about remote Mac connections when working with Safari:
|Using the automation object model||
In the automation object model, WebLauncher.Browser does not support the Safari browser.
To connect to a remote Mac during a test run and open the Safari browser, use the RemoteConnection utility object and its methods.
For details, see the Utility Objects section of the UFT One Object Model Reference for GUI Testing.
Depending on the performance of your connection to the Mac, statement completion for the Object property might not work.