How to get console.log output in Terminal via Headless Chrome Runtime.evaluate
问题 I am following this issue post here: https://github.com/cyrus-and/chrome-remote-interface/issues/105 But I cannot seem to get console.log output in the Mac Terminal. It's probably inside the Chrome Devtools window which I don't see. So how do I get console.log output in Mac Terminal via Runtime.evaluate expression? My code below: const chromeLauncher = require('chrome-launcher'); const CDP = require('chrome-remote-interface'); const file = require('fs'); (async function() { async function