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.
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.
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