Question

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

  • 15 December 2023
  • 3 replies
  • 251 views

Badge

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

Userlevel 6
Badge +16

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

Userlevel 4
Badge +7

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.

Badge

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 .

Reply