Support > Forums > OpenBots Studio > JavaScript in HTML Input

JavaScript in HTML Input

Monica Nhim

  • Reporter
  • Calender Icon October 25,2023 at 4:17 AM

Hi OpenBots team, I can't use JavaScript in HTML input. Could you provide the solution to use JavaScript in HTML input, please?

This forum has 314 topics, 681 replies, and was last updated 20 days ago by Support Agent

Nataly Alvarado...

  • Participant
  • Calender Icon October 25,2023 at 2:28 PM

Good morning,

In Studio extension v2.0.0 we have upgraded to v3 chrome extension manifest. In v3, Google tightened the CSP rules to improve the security of extensions. This leads to inline event handlers and other inline JavaScript code being blocked by default to prevent XSS attacks. Unfortunately as v2 manifest extensions are being deprecated, this requires extensive research to identify alternate solutions. This update only affects elements that invoke a JavaScript function, as it prevents the bot to execute the function as HREF link because it violates the Content Security Policy. The solution to interact with this type of elements, would be to switch to manual interaction (instead of simulate).

If the issue you are facing has a different root cause, we can take a closer look.

Thanks!

You are not authorized to reply, please click here to login and add your reply to this topic.