function simpleTest() { return "Hello, this is a test!"; }
This is simple function, still not running. Error is
There was an error while opening the JavaScript 'Test'.There was an error while opening the manually input JavaScript. Also tried by opening the function with .js function.
Best answer by Aaron.Gleason
Yikes. Time to clean up your system.
Uninstall the Bot Agent.
Clear out these folders: c:\windows\system32\config\systemprofile\appdata\local\automationanywhere\ C:\ProgramData\AutomationAnywhere
Reinstall your Bot Agent and try again.
Note that the folders above may be hidden and/or need admin privileges to clean out.
I just re-entered this fresh into my CE version and still cannot replicate your error.
It appears you copied and pasted in your JavaScript. Maybe there is a hidden character somewhere because your indention looks different than mine. The editor corrects the indentation, so that is a little suspect.
Maybe try typing in the JavaScript code? Not sure at this point.
Now, I’m not even able to run Message Box in my CE. It is giving and error message that says, Could not initialize class sun.font.SunFontManager. Attaching my error screenshot. Please help.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.