BROWSER Run javascript function

The BROWSER Run javascript function in RPA.

Help CentreBuilding Processes

This article describes the RPA Browser functionality to run javascript.

For a full list of available functions, please read BROWSER functions.


Description

The BROWSER Run javascript function allows you to run javascript.


Setting it up

To use the BROWSER Run javascript function, follow these instructions:

{{popups:rpas/add:action=browser-javascript}}

Once on a process map:

  1. Navigate to the process where you would like to add the BROWSER Run javascript function
  2. Click on the green button’s drop-down (right side of the green button labelled “Process”)
  3. On the menu that appears, click on the “+ Activity” item
  4. From here you can select the BROWSER Run javascript option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
JavaScript codeYesText (multi-line)The JavaScript code to execute in the browser.
VariableYesTextVariable to store the return value.

Output variables

VariableTypeDescription
VariableTextThe value returned by the JavaScript code.

Errors

ErrorDescription
Script errorThe JavaScript code contains an error.
TimeoutThe script did not complete within the timeout period.

Tips

  • Return a value using 'return' in your script to capture results.
  • Use this for advanced operations not available through standard actions.

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.