The latest Microsoft Edge browser update to version 115.0.1901.183 introduced a bug regarding the initialization of MV3 extensions for Edge started “InPrivate” mode.
This issue affects all MV3 extensions, not just the UiPath Extension for Microsoft Edge.
We have reported this issue to Microsoft as an Edge bug and are waiting for their review.
Observed behavior
When Microsoft Edge browser is started using:
- the Open Browser activity with Options → Private property set to True or
- the Use Application/Browser activity with Options-Browser → Incognito/private window property set to True
The browser is opened, but the following error is displayed: “Cannot communicate with the browser, please check the UiPath extension.”
The extension is initialized correctly when a normal Edge tab is opened (the Private option is set to False).
Available workarounds
-
Open a normal Edge browser tab before launching the “InPrivate” browser tab.
Disadvantage: requires changes to the automation projects
-
Use a temp custom user data folder for the “Open Browser” activity instead of the “InPrivate” option.
This achieves the same effect - cookies can be cleared by deleting the custom user data folder.
Disadvantage: requires changes to the automation projects
-
Install the UiPath MV2 extension.
This can be done easily by adding the
bhchaenngmlcobfechfkikaofjlmejop
extension ID to the ExtensionInstallForcelist Group Policy.Advantage: no changes are required to the automation projects
Disadvantage: users will need to manually re-check the option to “Allow in InPrivate” from
edge://extensions/?id=bhchaenngmlcobfechfkikaofjlmejop
-
Downgrade Edge to v114
See instructions here: Microsoft Edge rollback for enterprises
Update August 30, 2023
As we mentioned before, this bug was reported to Microsoft, but is not yet fixed in Edge v116, v117 or v118, and we do not have an estimated time for resolution. Until this issue is resolved, we have implemented workaround #1 from the list above in v23.8-preview of the UIAutomation package.
If you decide to use this solution, for the affected projects you just need to update the UiPath.UIAutomation.Activities package to version 23.8.0-preview, which is available in the official feed.
The workaround will also be provided in the next enterprise version v23.10 of the UIAutomation package. However, since this is an Edge bug that affects all MV3 extensions, we are still waiting for it to be fixed in a future version of Edge.
Update November 3, 2023
Microsoft notified us that the original bug was fixed in Edge v119 and our internal testing confirmed this as well.
As of November 2nd, Edge version 119 is on the Stable Channel and the progressive rollout has started. Therefore, once your browser is updated to this version, you will no longer need to use the workarounds.