Advanced steps
JavaScript
Execute arbitrary JavaScript in a Node.js sandbox or in the browser
This step allows you to execute arbitrary JavaScript code in a Node.js sandbox or in the browser.
For more infomation on executing JavaScript, see the JavaScript guide. For more information on using JavaScript to update test context, see Test context.
Inputs
javascript
string
requiredThe JavaScript code you want to execute. This can be any valid JavaScript code.
Configs
timeout
number
default: 10Max number of seconds for the action to finish. Maximum is 60 seconds.
execute in browser
boolean
default: falseExecute script in the current browser instead of a Node.js context. If enabled, your code will not be able to use third-party libraries, reference context variables, or return non-string values.
Was this page helpful?