Chrome Error "Cannot Access The Indicated Browser Window. Please Open A New Browser Window Or Restart The Browser. After Upgrade To Studio / Robot 2022.4+"

After upgrading to Studio 2022.4, the Chrome or Edge extension stopped working by throwing the error "Cannot access the indicated browser window. Please open a new browser window or restart the browser " .

Issue Description: After upgrading to Studio 2022.4, the Chrome or Edge extension does not work at all. The extension is installed by Group Policy - so it is automatically enabled. The ChromeNativeMessaging.exe is running as expected. No UI elements can be indicated in any web page and the following error message is shown by UiExplorer,

Root Cause: Missing Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\DeveloperToolsAvailability DWORD is set to 1.


Verification:

Resolution:

  • Run regedit
    • Set Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\DeveloperToolsAvailability value to 1.
    • Set Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge\DeveloperToolsAvailability value to 1.
  • Restart Browser and confirm DeveloperToolsAvailability=1.