I have seen that chromedriver can output a logfile (https://sites.google.com/a/chromium.org/chromedriver/logging)
This page shows how to set this up when executing the e
I'm using this as a global afterEach hook (mocha):
afterEach(() => { browser.manage().logs().get('browser').then(function(browserLog) { if(browserLog && browserLog.length) { console.log('\nlog: ' + util.inspect(browserLog) + '\n'); } }); });