Last updated 7 months ago
Was this helpful?
Maestro supports logging to the console via console.log.
console.log
Logging with multiple arguments is not supported. Running console.log('My variable is', variable) will only output My variable is.
console.log('My variable is', variable)
My variable is
evalScript
If 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')}
- runScript: script.js
const myVar = 'foo'; console.log(myVar); // outputs 'foo' console.log(`myVar is ${myVar}`) // outputs 'myVar is foo'