Critical Developers

Programmers Knowledge Base

Execute jQuery in Automation Anywhere

Many of us wondering how can we use jQuery for DOM manipulations and other functions/utility in Automation Anywhere, as if in AA there is "Execute Javascript Function" and "Run Script" Command. So friends, after thinking alot I wrote a bot which will allow to execute your jQuery function for DOM manipulations and everything about jQuery.

The bot can do--

  • This bot will load jQuery library and then execute your custom jQuery code using "Execute Javascript Function" command.
  • It can execute jQuery functions for DOM manipulations.
  • Will teach you how to execute jQuery in Automation Anywhere.
  • You can perform left-click, right-click, can also fill the entire form, etc. using JQuery and can automate many events using jQuery.
  • Rest you know the capabilities of jQuery...  

Logic behind jQuery bot--

1) Create a metabot which will accept jQuery file path and read entire jQuery definition and assign it to a variable, let say vJQueryDefinition

Note - it is only one time operation after that you can use it anywhere in your taskbot.

2) Take another variable "vMyJQueryCode" in which we will call jQuery functions. 

e.g.: $(document).ready(fuction(){ // your jQuery code will come here });

3) Finally drag & drop "Execute Javascript Function" command in workbench and pass JS function parameter like 

"vJQueryDefinition vMyJQueryCode"

So now, you can see jQuery definition will load first and then your custom jQuery function will get execute.

4) Run task

Bot is available at botstore, the link to download the bot is -

Note - You can replace jQuery file/version with the latest one if required.

Another approach is, you can use "Rest Web Service" command and using GET verb call jQuery CDN to load the jQuery definition in a variable.

But there is some disadvantage like - 

GET request is bit slow

Depends on internet connectivity so you will have to handle that in case request timed out.

Hope this article helped you !!! - 500 Internal Server Error, 404 Error, Blank admin pages

After struggling from weeks and chatting with my hosting support team I found below solutions.

The below solution is for if Blogengine is installed in root directory


1) Correct the admin URL

Instead of this URL

Use this URL

2) Check Custom handlers working or not

Right click on browser and select "View page source" of your blog

In html source find and click on any .axd file eg.: admin.res.axd, syndication.axd etc...

If .axd file not open in browser or giving 404 error do below steps:-

Remove <handlers> from <system.webServer> but keep <httpHandlers> in <system.web>

3) Check Application Pool

If it is Integrated change it to Classic


If it is Classic change it to Integrated

Above these 3 solutions will definitely solve your problem.

Happy Blogging with