Known Issues - Google Chrome, Microsoft Edge (Chromium-based), and Apple Safari

Functionality and Settings

The following known issues are relevant for Google Chrome, Microsoft Chromium Edge, and Apple Safari:

JavaScript on your page

Web pages that modify the browser's JavaScript functionality may cause UFT One to behave unexpectedly.

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 Chrome, Chromium Edge, or Safari may cause the checkpoints to fail.

Chrome / Safari users

If you have multiple Chrome, Chromium Edge, or Safari users defined, you must delete all users.

Back to top

Test Objects, Methods and Properties

The following known issues are relevant for Google Chrome, Microsoft Chromium Edge, and Apple Safari:

Property values

When using Chrome, Chromium Edge, or 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.

Unsupported functionality

The following test objects, methods, and other Web-specific functionalities are not supported in Chrome, Chromium Edge, or Safari:

  • ViewLink test object

  • chrome://* pages

  • edge://* pages (in Chromium Edge browsers)

  • about://* pages

  • blob:* frames (in Chrome and Chromium Edge browsers)

  • Browser.Home method

  • Browser.Object method

  • Browser.Stop

  • Dialog test objects (in Chrome and Chromium Edge browsers. See Dialog object in the UFT One Object Model Reference for GUI Testing)

  • Developer Tools pane. (Running steps on Chrome, Chromium Edge, or Safari while the Developer Tools pane is open is supported.)

  • WebXML test object (and, accordingly, XML checkpoints and output value steps).

  • Web-based environments, such as Web-based SAP, Siebel, Java, .NET Web Forms, and so on. . For Chrome exceptions to this rule, see Web-based SAP support.

Back to top

Google Chrome and Microsoft Chromium Edge

Checkpoints
  • Text checkpoints fail when running on Chrome or Chromium Edge.
  • When creating or running checkpoints on AgGrid objects in Chrome or Chromium Edge, maximize your browser to avoid unexpected behavior.
Internal Chrome pages

Internal Chrome pages, such as the about:blank page, Chrome sign-in page, Chrome Web Store, and Chrome's default tabs homepage are not recognized as Web pages but WinObjects.

Manually enable the extension

You must manually enable the Micro Focus UFT Agent extension in the following cases:

Google Chrome

  • You have no Internet connection

  • You have not enabled the automatic updates for Google Chrome

  • You are using Google Chrome versions 31 or earlier.

For more details, see Enable the Micro Focus UFT Agent extension on Google Chrome.

Microsoft Chromium Edge

  • You have no Internet connection

  • You have not enabled the automatic updates for Chromium Edge

For more details, see Enable the Micro Focus UFT Agent extension on Microsoft Edge (Chromium-based).

Enable extension installation in your browser policy

If the extension fails to install due to your browser policy, manually allow the installation by performing the following changes: 

Caution: Make sure that your company's security policies permit you to make this change.

Chromium Edge

Chrome

Manually removing the extension

If you manually uninstall the UFT Agent extension from Chrome or Chromium Edge, you must manually reinstall it if you reinstall UFT One.

Running operations on objects that load after the web page loaded

Sometimes, when you open a browser using SystemUtil.Run or Webutil.LaunchBrowser, the page loads, but operations on the page fail. For example a WebTable.SelectCell method may fail to select the cell.

Possible cause: The site continues to load data after the page is loaded, and the operation performed requires an object that is not ready.

Workaround: Open the browser using the Record and Run Settings, or using SystemUtil.Run with a URL to the specific object on the page.

For example: 

systemutil.run "chrome", "https://sapui5.hana.ondemand.com/1.52.17/#/sample/sap.ui.comp.sample.smarttable/preview"

Recording on Google Chrome
  • Recording on Google Chrome is supported only from versions 31 and higher.
  • The Page/Frame options (Tools > Options > GUI Testing tab > Web > Page/Frame Options node) are not supported for recording in Google Chrome.
  • When accessing FTP servers using Google Chrome, UFT One does not record actions on the server authentication dialogs.

  • When recording a test on a Web page coded in languages other than HTML5, drag and drop methods can be recorded in Internet Explorer only.

  • When recording on Google Chrome, UFT One does not use the location to learn the object.
  • Chrome versions 63 and higher: Recording a step to close the last tab in your Chrome window using the CloseAllTabs method is not supported.

  • If the Record Coordinates option is selected in the Web > Advanced pane of the Options dialog box (Tools > Options > GUI Testing tab > Web > AdvancedRecord Settings section), UFT One does not record correct coordinates on images in Google Chrome browsers.

    Workaround: Manually add the correct coordinates for the image after recording.

Spying
  • If you have the Chrome or Chromium Edge developer tools currently open, UFT One cannot spy on Web objects.
  • When spying on a Web file in Chrome or Chromium Edge, you get a fakepath for a Webfile value property.
  • Using the Object Spy on Alert or Confirm dialogs causes unexpected behavior in UFT One.

Unsupported functionality
  • The Active Screen captures still images only when recording in Chrome or Chromium Edge.

    To use Active Screen right-click options, such as adding steps or checkpoints, record your tests in Internet Explorer instead.

  • Frameset objects are not supported on Chrome or Chromium Edge.

  • Local system monitoring is not supported in Chrome and Chromium Edge.
  • Google Chrome versions 36 or earlier, UFT One does not support Web test objects located inside iFrame controls with a blank or about:blank SRC description property value.

  • Chromium Edge 85 and later & UFT One 15.0.1: The WebFile object is not supported.

  • Testing web applications in IE mode on Chromium Edge is not supported.

Running the WebAudio.Play and WebVideo.Play methods

By default, Chrome and Chromium Edge do not enable automatically playing audio and video files.

To enable running the WebAudio.Play and WebVideo.Play methods:

Configure the browser to allow autoplaying of audio and video files. Try the following options or check online for the relevant browser settings:

  • Chrome: Add a registry key called AutoplayAllowed to the Windows registry:

    Location: HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome

    Value: 0x00000001

  • Chromium Edge: In the Media autoplay settings of the browser, set Control if audio and video play automatically on sites to Allow.

Web Extensibility

If you have a custom toolkit designed using Web Extensibility, UFT One cannot handle some events on Chrome or Chromium Edge browsers.

Windows 10

When testing applications on Google Chrome or Chromium Edge in Windows 10, UFT One does not record many user actions.

Workaround: In Chrome, do the following:

  1. Navigate to the chrome://flags/ page.

  2. In the flags page, disable the Enable touch events option.

Workaround: In Chromium Edge, do the following:

  1. Navigate to the edge://flags/ page.

  2. In the flags page, disable the Enable touch events option.

Working with multiple Chrome versions simultaneously UFT One cannot record or run tests on the Chrome released version and the Chrome beta version in the same session.

Browser dialog boxes

General

Chrome and Chromium Edge use different standard dialog boxes than Windows standard dialog boxes used by Microsoft Internet Explorer.

Due to the difference in standard dialog boxes, pop-up recovery scenarios that use the Click button with label recovery operation and were built for Microsoft Internet Explorer will not work for Chrome and Chromium Edge, and vice versa.

Alert, Confirm, and Prompt dialog boxes

You cannot spy on Alert, Confirm, and Prompt dialog boxes opened by the browser but you can record and run scripts on them.

If you create steps on such dialog boxes, use Browser.DialogExists, Browser.HandleDialog, and Browser.GetDialogText methods to automate the dialog box behavior. See the following example.

For dialog boxes of other types, such as Authentication, Security Alert, and Certificate dialog boxes, use UIA add-in or AI features in UFT One to handle them.

Example: The following example verifies whether a browser dialog box exists. If the dialog box does exist, it retrieves the message displayed, clicks the OK button, and closes the dialog box.

Browser("Example").Page("Buttons").WebButton("Pop up!").Click
While Browser("Example").DialogExists = false
	wait 2
Wend
txt = Browser("Example").GetDialogText
If txt = "expected value" Then
	Browser("Example").HandleDialog micOK
End If

Note: The HandleDialog , GetDialogText, and DialogExists methods may have unexpected results in the following scenarios:

  • If you manually open a dialog box outside of your run session
  • If you manually close a dialog box during your run session

Back to top

Apple Safari only

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.

  • Highlighting and learning:

    Highlighting an object from the object repository in the application is not supported.

    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.

Unsupported Safari functionality

  • UFT One does not recognize internal Safari pages, such as the New Tab page.

  • UFT One does not support the Browser.FullScreen method on Safari.

  • On Safari 13 and 14, UFT One does not support multiple tabs.

  • 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 on Safari versions 11 and higher.

    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.

Page checkpoints

Browser differences

Page checkpoints and bitmap checkpoints may fail when running on Google Chrome because of differences between Chrome and Internet Explorer.

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.

Unsupported test objects and methods

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:

  • WebFile.Set method

  • Browser.ClearCache method

  • Browser.DeleteCookies method

  • Browser.Back method (on Safari 13 and 14)

  • Browser.OpenNewTab method (on Safari 12 and later)

  • Drag & Drop methods (on all Web test objects)

  • CaptureBitmap method (on all Web test objects in Safari 13 and 14)

  • Web test objects located inside iFrame controls with a blank or about:blank SRC value.

  • WebAudio.Play and WebVideo.Play methods
  • WebAgGrid and WebUIGrid objects

Run sessions

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).

Recovery scenarios

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.

Workaround: Do the following:

  1. In Safari. select Preferences > Advanced.

  2. In the menu bar, select the Show Develop menu in menu bar option.

  3. In the Develop menu, select Disable caches.

Remote Mac connections

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.

Statement completion

Depending on the performance of your connection to the Mac, statement completion for the Object property might not work.

Back to top

See also: