Version: 1.3.0

ConsoleMessage

ConsoleMessage objects are dispatched by page via the 'console' event.

consoleMessage.args()#

consoleMessage.location()#

  • returns: <Object>
    • url <string> Optional URL of the resource if available.
    • lineNumber <number> Optional 0-based line number in the resource if available.
    • columnNumber <number> Optional 0-based column number in the resource if available.

consoleMessage.text()#

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'.