ReferenceError: require is not defined while using Inject Js Script

New Text Document.txt (1.2 KB)
Hi Team,

I need to inject the attached JS code, but i am getting an error, Could you please guide me , What is the issue

Check the release notes for the UiPath.UIAutomation.Activities for the Inject Js Script activity

https://docs.uipath.com/activities/other/latest/ui-automation/release-notes-uipath-uiautomation-activities#v2344

https://docs.uipath.com/studio/standalone/2023.4/user-guide/chrome-extension#the-inject-js-script-activity-can-no-longer-be-used-to-access-page-variables-and-code