puppeteer/website/versioned_docs/version-9.1.1/puppeteer.consolemessage._constructor_.md
2021-08-10 11:09:48 +01:00

819 B

Home > puppeteer > ConsoleMessage > (constructor)

ConsoleMessage.(constructor)

Constructs a new instance of the ConsoleMessage class

Signature:

constructor(type: ConsoleMessageType, text: string, args: JSHandle[], stackTraceLocations: ConsoleMessageLocation[]);

Parameters

Parameter Type Description
type ConsoleMessageType
text string
args JSHandle[]
stackTraceLocations ConsoleMessageLocation[]