I was trying to debug a `javascript:` block in a `shots.yml` file and realized that `console.log()` would be useful. https://playwright.dev/python/docs/api/class-consolemessage#console-message-args says it's as easy as doing this: ```python # Listen for all console logs page.on("console", lambda msg: print(msg.text)) ```