
Example script of using Execute code processor
COUNT starts at 1, the Execute code processor increments it and stores the outcome in EXECUTED_RESULT .

Configure the Execute code processor

The processor’s output is stored in
EXECUTED_RESULT
Without browser: the JavaScript snippet runs inside Node.js’s VM with no browser involvement, so pick this when your code doesn’t need to interact with browser.Run in browser: the JavaScript executes inside Chrome DevTools, launching the browser so you can interact with page elements, for exampledocument.querySelector(".title").innerHTML
Configuration fields
| Field name | Required? | Detail |
|---|---|---|
| Variable to save result | Yes | This processor outputs a random number, so select a variable to capture it. For example |
| Mode | Yes | Without browser or Run in browser |
| Javascript code | Yes | The code snippet you want to execute |