ConsoleMessage
ConsoleMessage objects are dispatched by page via the page.on('console') event.
#
consoleMessage.args()List of arguments passed to a console
function call. See also page.on('console').
#
consoleMessage.location()#
consoleMessage.text()The text of the console message.
#
consoleMessage.type()One of the following values: 'log'
, 'debug'
, 'info'
, 'error'
, 'warning'
, 'dir'
, 'dirxml'
, 'table'
, 'trace'
, 'clear'
, 'startGroup'
, 'startGroupCollapsed'
, 'endGroup'
, 'assert'
, 'profile'
, 'profileEnd'
, 'count'
, 'timeEnd'
.