This step allows you to execute arbitrary JavaScript code in a Node.js sandbox or in the running browser.

Please see the JavaScript for more details on the global libraries and utility functions available to you in JavaScript.

Inputs

Javascript
string
required

The JavaScript code you want to execute. This can be any valid JavaScript code.

Configs

Timeout
number
default:10

Max number of seconds for the action to finish. Maximum is 60 seconds.

Execute in browser
boolean
default:false

Execute script in the current browser instead of a Node.js context.

Save to environment variable
string

Store the output of this step into the environment at the given key. This configuration only applies for steps that output data.