Inject Js Script '...': Error HRESULT E_FAIL has been returned from a call to a COM component

Hi everyone,

after updating the chrome extesion (24.10—>26.10) the activity Inject Js Script produces the error “Inject Js Script ‘…’: Error HRESULT E_FAIL has been returned from a call to a COM component.”
The UiAutomation.Activities is v25.10.35 and if I upgrade to 26.10.0 it won’t work too.

I’m working on the client VM therefore I’m not able to change the configurations of the machine.

Is there a solution to fix this bug?

There is no possibility to replicate the action manually.

Thanks,
Leonardo

Hi @Leonardo_Costa

Pls check below thread might be helpful:

Inject Js Script is a deprecated Classic activity and may fail with newer Chrome extensions, causing HRESULT E_FAIL.
The supported fix is to use the Modern activity Execute Script inside Use Application/Browser and ensure the Chrome extension version matches the UiAutomation.Activities package version.
If version alignment is not possible, downgrading the extension to match the package is required.

Happy Automation

Hi @Leonardo_Costa ,

This issue is caused by the Chrome/Edge updates to version 149, which introduce changes that restrict extension capabilities when Developer Tools access is limited. As a result, activities such as Inject Js Script may fail if DevTools access is not explicitly allowed.

To fix this, you need to configure one of the following policies:

  • DeveloperToolsAvailabilityAllowlist / DeveloperToolsAvailabilityBlocklist or
  • DeveloperToolsAvailability

You can find more details here: