puppeteer/new-docs/puppeteer.consolemessage.md

941 B

Home > puppeteer > ConsoleMessage

ConsoleMessage class

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

Signature:

export declare class ConsoleMessage 

Constructors

Constructor Modifiers Description
(constructor)(type, text, args, location) Constructs a new instance of the ConsoleMessage class

Methods

Method Modifiers Description
args()
location()
text()
type()