Known Issues - Google Chrome, Microsoft Edge (Chromium-based), and Mozilla Firefox

This topic describes known issues when working with Chrome, Chromium Edge, and Firefox browsers.

Extension installation

This section contains limitation information about browser extensions.

To support UFT One testing, the Micro Focus UFT Agent must be installed and enabled in your browser. Installing UFT One usually handles setting up the browser extension too. However, sometimes, manual intervention is required.

Manually enable the extension

You must manually enable the Micro Focus UFT Agent extension for Chrome / Chromium Edge in the following cases:

  • You have no Internet connection.

  • You have not enabled the automatic updates for Chrome or Chromium Edge.

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

Enable extension installation in your browser policy

To install the browser extension, your browser policy must allow it. To update your browser policies automatically, you can select the Set Chrome, Chromium Edge, Firefox options option during UFT One installation. Otherwise, you need to manually update your browser policies to allow installing the Micro Focus UFT Agent:

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

Manually remove the extension

You may need to manually remove unused extensions from Firefox in the following cases:

  • The Firefox extension is not removed after you uninstall UFT One.

  • The old extension is kept in Firefox after you upgrade UFT One.

ValueEdge Functional Test Design

ValueEdge Functional Test Design (FT Design) also uses the Micro Focus UFT Agent to test web applications. FT Design and UFT One each install their own version of the extension, and each program requires its version to be the only one enabled.

Before you use UFT One on a computer that also used FT Design, make sure the extension version enabled matches your version of UFT One.

Back to top

General

This section contains general limitations when you work with Chrome, Chromium Edge, or Firefox:

Common issues shared by all browsers

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, and Firefox may cause the checkpoints to fail.

Web Extensibility

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

Issues when working with Chrome or Chromiuim Edge

Chrome / Chromium Edge users

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

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.

Issues when working with Firefox

Other Firefox add-ins and the Add-ons Manager
  • We recommend disabling other Firefox add-ins when performing tests of your Web application or Web page.

  • If you have the Add-ons Manager enabled, in the Web tab of the Run and Record Settings dialog box, if you set Firefox to open to a specific URL, Firefox does not open to the specified URL at the beginning of a recording or run session.

    Workaround: Disable the Add-ons Manager before using Firefox.

User Account Control enabled

If you are working on a computer where the UAC (User Account Control) option is set to ON, UFT One does not support testing on Firefox browsers that were installed (or upgraded to a new version) after you installed UFT One.

Workaround: After installing Firefox on the environment described above, log in as an administrator and open UFT One.

This enables UFT One to install files that are required for Firefox support.

Anonymous content elements

UFT One does not support anonymous content elements in non-XUL frames of Firefox. (For example, the buttons in the Firefox SSL exception page.)

Privileged URLs

If you are testing on a Firefox version 57 and higher, a Firefox limitation prevents you from navigating to privileged URLs.

UFT One displays an error if your test step navigates to a privileged URL in Firefox. You can then stop, skip, or edit and retry your step.

For more details, see the MDN web docs.

Multiple browser windows

If you open multiple Firefox windows and maximize them all, UFT One fails to spy on any object on any of the windows.

Back to top

Recording

This section lists known issues you may encounter when recording on Chrome, Chromium Edge, and Firefox:

Prerequisites

Recording on Chrome, Chromium Edge, and Firefox is only possible when the page is fully loaded.

Unsupported methods and features while recording
  • When accessing FTP servers using Chrome, Chromium Edge, and Firefox, UFT One does not record actions on the server authentication dialogs.

  • When recording on Chrome, Chromium Edge, and Firefox, UFT One does not use the location identifier to learn the object.

  • The Active Screen captures still images only when recording on Chrome, Chromium Edge, and Firefox.

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

Troubleshooting additional steps

When recording steps, additional steps may be recorded.

Workaround: Manually remove the extraneous steps after the recording session ends.

CloseAllTabs methods

When recording on Firefox versions 57 and higher, Chrome versions 63 and higher, or Chromium Edge, steps that close the last tab of the browser, or all browser tabs in a window, are not recorded.

If Handler option

The If Handler option in the Web Event Recording Configuration Dialog Box works only if the handler is assigned as an attribute. For example, <A onclick = "some code"/>.

The If Handler option does not work if the handler is assigned as a property. For example, aObj.onclick = function() {some code}.

Record Coordinates

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.

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

WebRange.Set method

When recording a WebRange.Set step for the first time on a browser, UFT One fails to record it properly.

Workaround: Try to record the step again.

Back to top

Test objects, checkpoints, methods and properties

This section lists known issues about test objects, checkpoints, object methods and properties.

Common issues shared by all browsers

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"

Edit boxes

The Object Spy and Checkpoint Properties dialog boxes do not retrieve the current value of edit boxes in dialog boxes.

Search toolbar or Developer Tools pane
  • If you open the Search toolbar or Developer Tools pane, when you highlight an object in the Object Spy or object repository, the highlight rectangle is displayed in the wrong location in the browser window.

    Workaround: Float the toolbar in the browser window.

  • If you have the Developer Tools currently open on browser pages, UFT One cannot spy on Web objects.
Checkpoints

When creating or running checkpoints on AgGrid objects, maximize your browser to avoid unexpected behavior.

Drag and drop methods

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.

Running the WebAudio.Play and WebVideo.Play methods

By default, Chrome, Chromium Edge, and Firefox do not enable automatically playing audio and video files. The WebAudio.Play and WebVideo.Play steps may be successfully run but actual operations are not performed.

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.

  • Firefox: In the Autoplay settings of the browser, select Allow Audio and Video from the Default for all websites drop-down.

Property values

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

Shadow DOM
  • Testing apps developed with Shadow DOM is supported only when the Shadow DOM open development mode was used.

    For example: "mode: 'open'"

  • CSS and XPath properties are not supported.

  • UFT One's support for Shadow DOM does not include test objects created with Web 2.0 technologies.

Web file

When spying on a Web file in Chrome, Chromium Edge, or Firefox, you get a fakepath for a Webfile value property.

hwnd property

The hwnd property is not supported when working in Chrome, Chromium Edge, or Firefox (versions 57 and higher).

Issues when working with Chrome

Link.Click / Browser.Navigate

(UFT One version 2022 and later)

You may encounter the following issues if you are using the latest Micro Focus UFT Agent extension, available in the Chrome web store or in the UFT One installation folder>\Installations\Chrome\v3 folder:

  • For a link element with its href attribute set to a javascript: URL, the Click step may be successfully run but the actual operation is not performed.

    For example, the alert dialog is not opened when running a Click step on the following link element:

    <a href="javascript:window.alert('Press OK ')">Open "alert" dialog</a>

  • Only the default value of the Headers parameter is supported if you run the Browser.Navigate method in Chrome.

How can I tell if I am using the relevant extension: Navigate to the chrome://extensions/ page and click Details on the Micro Focus UFT Agent extension. The Inspect views of the extension are service worker.

Workaround:

  • Use DeviceReplay to click the link and open the prompt dialog box. (Only for the first issue)

  • Uninstall the existing extension, follow the installation instructions in Automatic Chrome updates disabled and install the Chrome extension from <UFT One installation folder>\Installations\Chrome\v2.

Issues when working with Firefox

Web pages loaded via HTML objects UFT One cannot accurately identify web objects on Firefox web pages loaded via the data property of an HTML object. Objects on such web pages are identified as WebElement objects.
RunScript method

When using the RunScript method on Firefox browsers, you should disable the Content Security Policy before running the test:

  1. In Firefox, native to about:config.

  2. Search for security.csp.enable.

  3. Change the value to false.

Issues when working with Chromium Edge

Using the Object Identification Center (OIC)

When highlighting an object in an application in Chromium Edge with sidebar enabled:

  • No vertical tabs on the left side: The object area the OIC highlights is offset in UFT One version 2022 and earlier.

  • Vertical tabs on the left side: The object area the OIC highlights is offset in all UFT One versions.

Back to top

Unsupported test objects, methods, and functionalities

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

Test objects
  • about://* pages

  • blob:*

  • chrome://* pages (in Chrome)

  • Dialog test objects (See Dialog object in UFT One Object Model Reference for GUI Testing)

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

  • Firefox start page (in Firefox)

  • Frameset objects

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

  • ViewLink objects

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

  • Web-based environments, such as Siebel, Java, .NET Web Forms.

    Testing web-based SAP applications is supported on Chrome, Chromium Edge, and Firefox, except for the following test objects: SAPiView, SAPMenu, SAPOKCode, SAPStatusBar, and SAPWorkCenter.

    For details, see Web-based SAP support.

Methods
  • Browser.Object method

  • Browser.Stop method

  • Browser.Home method

Functionality

Local system monitoring

Back to top

IE Mode in Chromium Edge

This section lists known issues you may encounter when working with IE mode in Chromium Edge:

Browser.Back method

Sometimes, the Browser.Back step may not be performed if its previous step causes a page redirection.

Workaround: Add a Wait statement between the two steps.

Example:

Browser("Advantage Shopping").Page("Advantage Shopping").WebElement("SpeakersCategoryTxt").Click

Wait 2
Browser("Advantage Shopping").Back

Spying / recording / running tests on Windows 10

(UFT One version 2021 and earlier)

When running tests on web applications on IE Mode in Chromium Edge:

  • The browser's number of tabs property is incorrect.

  • Any Browser.OpenNewTab step is listed twice in the run results.

Spying and recording on web applications on IE mode in Chromium Edge is not supported.

Spying and Recording

(UFT One version 2021 R1 and later)

  • The following Browser methods are not recorded: Refresh, Navigate, Back, and Forward

  • UFT One cannot recognize Web objects on browser pages that have the Developer Tools open.

Back to top

Dialog boxes

General

Chrome, Chromium Edge, and Firefox 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 do not work for Chrome, Chromium Edge, and Firefox, 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:

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.

Copy code

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

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

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.

Dialog box opened from a cross-origin frame

Firefox version 69 or later: Dialog boxes triggered by elements inside cross-origin frames are not supported.

Back to top

Testing applications with strict Content Security Policies (CSPs)

Relevant for UFT One version 2022 and later

To test a web application, UFT One must communicate with the application, including JavaScript injection. However, if you are using the latest Micro Focus UFT Agent extension, available in the Chrome web store or in the UFT One installation folder>\Installations\Chrome\v3 folder, some applications block this ability.

How can I tell if I am using the relevant extension: Navigate to the chrome://extensions/ page and click Details on the Micro Focus UFT Agent extension. The Inspect views of the extension are service worker.

If you encounter issues when testing a secure application, you can adjust your browser policy to allow the extension to communicate with your application.

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

To test secure applications on Chrome with an internet connection

  1. In the Registry Editor, navigate to Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome.

  2. Create a key named ExtensionInstallForcelist.

  3. In HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\ExtensionInstallForcelist, add a new String value named 1.

  4. Populate the value of 1 with the extension ID, as listed in Enable extension installation in your browser policy.

    You can check that the added policy is enabled on the chrome://policy page.

To test secure applications on Chrome without an internet connection

  1. Create a file named updates.xml, add the following content to the file, and save the file in the <UFT One installation folder>/Installations/Chrome/v3 path.

    Copy code
    <?xml version='1.0' encoding='UTF-8'?>
    <gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
      <app appid='<extension ID>'>
        <updatecheck codebase='file:///<UFT One installation folder>/Installations/Chrome/v3/Agent.crx' version='extension version number' />
      </app>
    </gupdate>

    Note: Replace the <UFT One installation folder> and extension version number with real values.

    Use the extension ID listed in Enable extension installation in your browser policy.

    You can get the extension version number by checking the extension you installed on the chrome://extensions page.

  2. In the Registry Editor, navigate to Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome.

  3. Create a key named ExtensionInstallForcelist.

  4. In HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\ExtensionInstallForcelist, add a new String value named 1.

  5. Populate the value of 1 with <extension ID>;file:///<UFT One installation folder>/Installations/Chrome/v3/updates.xml.

    You can check that the added policy is enabled on the chrome://policy page.

Back to top

See also: