Skip to main content
Question

Run Java script-Getting timedout.

  • February 20, 2026
  • 1 reply
  • 15 views

Forum|alt.badge.img+3

Tried to run the java script using Browser-RunJavaScript action-Its getting timed out.

1 reply

Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+14
  • Automation Anywhere Team
  • February 20, 2026

@Ajith 9655 Some pages and sites are more and less tolerant of having JavaScript injected. For example, our https://developer.automationanywhere.com/ domain has “strict CSP” enabled, which disallows JavaScript injection.

In short, if you try to do a Run JavaScript with any pages on the developer domain, it will timeout and fail.

We’re going into the weeds a bit here, but you must to determine if the site’s CSP settings interfere with the Run JavaScript action.

If you bring up the developer tools in your browser (typically F12), switch to the Network tab and reload the page. Look for the page (newuser.php in this example) on the left side and switch to the Headers sub-tab. If you see “Content Security Policy” (CSP), that will advise you about the restrictions on that specific page. If you see “self” in any of the categories, that means it will reject JavaScript injection and the Run JavaScript action will fail.

If you need help decoding your own page, post a screen shot here showing the same stuff as above, I’ll gladly assist to see if CSP or other settings is preventing JavaScript injection on your site.