Version: Next

ConsoleMessage

ConsoleMessage objects are dispatched by page via the page.on("console") event.

console_message.args#

console_message.location#

  • returns: <Dict>
    • url <str> URL of the resource.
    • lineNumber <int> 0-based line number in the resource.
    • columnNumber <int> 0-based column number in the resource.

console_message.text#

console_message.type#

One of the following values: 'log', 'debug', 'info', 'error', 'warning', 'dir', 'dirxml', 'table', 'trace', 'clear', 'startGroup', 'startGroupCollapsed', 'endGroup', 'assert', 'profile', 'profileEnd', 'count', 'timeEnd'.