Logging
Log values in Maestro JavaScript scripts with console.log and evalScript for debugging.
Maestro supports logging to the console via console.log.
Logging with evalScript command
evalScript commandIf you want to log something inline you can use evalScript to output it to the console without having to create a separate file:
- evalScript: ${console.log('Hello from Javascript')}Logging in a separate JavaScript file
- runScript: script.jsconst myVar = 'foo';
console.log(myVar); // outputs 'foo'
console.log(`myVar is ${myVar}`) // outputs 'myVar is foo'Last updated
Was this helpful?
