Inject Js script activity in Uipath

I am unable to receive output from a web page when i am running the below script in Inject js script activity and retrieving its output in a variable.

"Function ()

text = document.getElementById(‘email’).value
return text

"

1 Like

Hey @GARG_ANSHIKA, Welcome

Happy to see you guys using UiPath for Automation.

Try the sample workflow - InjectJS_.zip (2.4 KB)

This will help you to fetch the value for UiPath forum search box.

Run-on this page to see results. Use the same format for your scenario.

Thanks :slight_smile: