For AI agents: a documentation index is available at /llms.txt
Skip to main content

ConsoleMessage

A console message emitted by the page. Mirrors puppeteer's ConsoleMessage, sourced from CDP Runtime.consoleAPICalled and Runtime.exceptionThrown.

Properties

PropertyTypeDescription
argsstring[] | nullEach console argument, JSON-encoded and in order (equivalent to msg.args()).
locationConsoleMessageLocation | nullThe source location the message originated from.
textstring | nullThe joined, human-readable message text (equivalent to puppeteer's msg.text()).
timestampnumber | nullWall-clock milliseconds since the Unix epoch when the message was emitted.
typeConsoleMessageType | nullThe kind of console message.