Acess denied issue while invoking Javascript

Hi All,

I have a project in which i created a js file and invoke it to click on a link in web application. 90 % of the times it work, sometimes it gives me below error.

Info | 06:45:28.493 PM | 75 | MTA | Automation | HotScan_P_IgnoreExceptionTransaction | wp_ManualReviewNotReviewedWorkqueue-63690108 | InvokeScript: Exception invoking method - Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

let me know if you need more details.

Thanks,

Dimple

@DimpleJ4 That is likely something that needs to be examined via your JavaScript. You may be operating on the wrong object or have some other bug in that script. What happens when you execute your JS from the console in the browser at the time of failure?

@sasnt Its only happening in prod Randomly, so we are not available at that time. which log category should i enable to get more details on it?

@DimpleJ4 It is not likely within Pega Robotic’s logs. Since the issue is with your custom JavaScript, you’d likely need to debug that via the browser. That is outside my expertise, but I would investigate your browser’s options for logging JavaScript execution.