Skip to main content

Execute Javascript Function

note

This activity is deprecated as Chrome no more supports this due to Manifest V3 Limitations.

Description

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

Properties

Input

  • Web Page – It specifies the webpage object of the currently opened web page.
  • Javascript Code – It specifies the JavaScript code to run. 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.

Misc

  • 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.

Optional

  • Continue On Error – It Specifies whether the automation should continue even when the Activity throws an error. If True, the Activity continues without throwing any exceptions. If False, the Activity throws an exception. The default value is False.
note

Catches no error if this Activity is present inside the Try-Catch block and the value of this property is True.

  • Timeout – An Argument of type Timespan Specifies the amount of waiting time taken by the activity to run before an error occurs and aborts the workflow. By default, the Timeout value is 10 minutes.

Output

  • Result - Return value of JavaScript function.

Example

Download Example