Hi there,
I’m trying to automate a web system using Google Chrome. I’ve installed and enabled the browser extension and followed various troubleshooting steps suggested on the forum, but all to no avail. I consistently get the same error; “Cannot communicate with the browser, please check the UiPath extension.”
I managed to capture the automation steps OK using Chrome. It’s just playback in the robot that is broken.
Here’s the setup:
UiPath 2018.3.1 Enterprise Edition
.Net Framework Version 4.6.1
Chrome Version 55.0.2883.87 m (updates disabled)
UiPath Web Automation 9.0.6821
ID: dkgencfabioofgdmhhjljpkbbchbikbh
Allow in incognito and Allow access to file URLs are both ticked.
In the registry,
HKEY_CURRENT_USER\Software\Google\Chrome\NativeMessagingHosts\com.UiPath.chromenativemsg
is set to
C:\Users<myaccount>\AppData\Local\UiPath\manifest.json
which contains (blank lines removed for brevity):
{
“name”: “com.UiPath.chromenativemsg”,
“description”: “UiPath Native Messaging Host for Chrome”,
“path”: “C:\Program Files (x86)\UiPath\Studio\UiPath\BrowserExtension\ChromeNativeMessaging.exe”,
“type”: “stdio”,
“allowed_origins”: [
“chrome-extension://dkgencfabioofgdmhhjljpkbbchbikbh/”
]
}
The chrome-extension value matches the ID for the extension mentioned above and the .crx file in the C:\Program Files (x86)\UiPath\Studio\UiPath\BrowserExtension directory.
I’ve also added an extra registry key at:
HKEY_LOCAL_MACHINE\SOFTWARE\Google\Chrome\NativeMessagingHosts\com.UiPath.chromenativemsg
which points at a copy of manifest.json placed on the C: drive somewhere that any user could access it, as suggested in one post. This didn’t help.
If I open the extension’s background page, there are some messages in the console:
OnPageLoad: enter event.target=[object HTMLDocument]
RegisterWindowId windowId: 1
uiPathContentScriptLoadRequest: code not available
This last one looks both suspicious and rare: Google gives only a single hit for it:
which ended with a request for some trace information which was never supplied, I guess.
I followed the instructions to gather trace info in an event log file. I had a quick look at the contents but it doesn’t mean much to me. There’s an error code (15003) which seems to be present in all of the captured events, regardless of whether they are Verbose, Information or Error. The only other data are big long hex strings.
I’ve reached a dead end at this point, so any help would be appreciated.
/Ken