Skip to main content

Execute Javascript Function


This activity executes the JavaScript code function in the context of the webpage corresponding to the UI element.



  • Web Page – It specifies the webpage object of the currently opened web page.
  • Javascript Code – It specifies the JavaScript code to run, and it should contain a single anonymous function with a single parameter to execute.
  • Javascript File – It specifies the file path of the executable JavaScript function.
  • Parameter – It specifies the input parameter to pass into the javascript function as a string or a string variable.


  • DisplayName – Add a display name to your activity.
  • Private – By default, activity will log the values of your properties inside your workflow. If private is selected, then it stops logging.


  • Continue On Error – Specifies if the automation should continue even when the activity throws an error. This field only supports Boolean values (True, False). The default value is False.

    Note: If this activity is included in Try Catch and the value of this property is True, no error is caught when the project is executed.


  • Result - Return value of JavaScript function.