Skip to main content
Question

How to run Javascript for browser and passing pass parameters in it only

  • December 15, 2023
  • 3 replies
  • 653 views

Forum|alt.badge.img+1

Hi Everyone,

I have a question and I am not getting any solution that is,

Is there any package in automation anywhere where we can run a javascript function activity for a Web Based application which can help me to fun javascript function and in that I can pass  parameters from the automation code.

 

Thanks 

3 replies

Forum|alt.badge.img+22
  • Most Valuable Pathfinder
  • December 15, 2023

Hi @yugal 786 

 

Have you checked Run JavaScript action? checkout below documentation and some conversations on the same topic.

https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/aae-client/bot-creator/commands/javascript-run.html

https://community.automationanywhere.com/developers-forum-36/how-to-reference-variable-within-run-javascript-with-manual-input-85899

https://community.automationanywhere.com/developers-forum-36/run-javascript-in-browser-86395


Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+14
  • Automation Anywhere Team
  • December 15, 2023

For parameters within Automation Anywhere, you may need to write a dynamic JavaScript file (using Log text to file) and execute it that way. There is no way that JavaScript can directly accept AA variables.


Forum|alt.badge.img
  • Cadet | Tier 2
  • March 2, 2024

Hi,

However, Automation Anywhere does support executing JavaScript code within its Automation Anywhere Web Control Room . This feature allows users to interact with web elements, execute JavaScript functions, and pass parameters to those functions using custom scripting capabilities. you will  achieve  the goal of running  java script and it will  help you to do better performance .yo get many  opportunity  in automation anywhere where you can run a java script function activity for a Web Based application .