ConsoleMessage class

ConsoleMessage objects are dispatched by page via the ‘console’ event.

Signature

export declare class ConsoleMessage

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ConsoleMessage class.

Methods

Method Modifiers Description
[args()](./puppeteer.consolemessage.args.md) An array of arguments passed to the console.
[location()](./puppeteer.consolemessage.location.md) The location of the console message.
[stackTrace()](./puppeteer.consolemessage.stacktrace.md) The array of locations on the stack of the console message.
[text()](./puppeteer.consolemessage.text.md) The text of the console message.
[type()](./puppeteer.consolemessage.type.md) The type of the console message.