UFT doesn't recognize objects in Google Chrome browser

  • KM03635284
  • 20-Apr-2020
  • 20-Apr-2020


Error: "Access to the native messaging host was disabled by the system administrator"


UFT add-in or UFT logs display below or similar error:

"Access to the native messaging host was disabled by the system administrator"

UFT is not able to recognize objects on Google Chrome Browser.



In collected background script logs, appears "bg-loader.html:1 Unchecked runtime.lastError: Access to the native messaging host was disabled by the system administrator."

That means Native Messaging is disabled by system administrator.



The example softwareand steps provided in this article are experimental and are provided as a courtesy, free of charge, "AS-IS" by Micro Focus. This is not part of UFT and Micro Focus shall have no obligation to maintain or support this example software. MICRO FOCUS MAKES NO EXPRESS OR IMPLIED WARRANTY OF ANY KIND REGARDING THIS EXAMPLE SOFTWARE. MICRO FOCUS SHALL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, WHETHER BASED ON CONTRACT, TORT OR ANY OTHER LEGAL THEORY, IN CONNECTION WITH OR ARISING OUT OF THE FURNISHING, PERFORMANCE OR USE OF THIS EXAMPLE SOFTWARE.

Please check Group Policy Editor (by run command gpedit.msc). Then go to User Configuration -> Administrative Templates -> Google Chrome -> Native Messaging.

There should be a configuration named "Allow user-level Native Messaging hosts". Please change its value to "Enabled" and restart Chrome. Then check if HP.UFT.Chrome.NativeMessagingHost.exe process is launched after Chrome launch. If the process is launched, then try spy/record.

In case you are not able to find the Administrative Templates -> Google Chrome -> Native Messaging in Group Policy Editor

Please try below steps:

1. Download Chrome group policy templates from:
2. Copy [zip]\windows\admx\chrome.admx to c:\windows\policydefinitions
3. Copy [zip]\windows\admx\[yourlanguage]\chrome.adml to
c:\windows\policydefinitions\[yourlanguage]\chrome.adml (not c:\windows\[yourlanguage])

After that, check Group Policy Editor again. Find "Allow user-level Native Messaging hosts" and set its value to "Enabled". Then restart Chrome. Check if HP.UFT.Chrome.NativeMessagingHost.exe launched, and if spy works.

If the issue persist:

Please try to find in Windows Registry Editor below keys? (type regedit in the Windows search box on the taskbar and press Enter.)




This key allows you to specify which native messaging hosts that should not be loaded.
A blacklist value of '*' means all native messaging hosts are blacklisted unless they are explicitly listed in the whitelist. Remove the “*” from the key. You can also add HP.UFT.Chrome.NativeMessagingHost.exe process to white list intead of add the '*'.

Once the change is performed please restart UFT and Chrome.