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.

type ConsoleMessage {
type: ConsoleMessageType
text: String
args: [String]
location: ConsoleMessageLocation
timestamp: Float
}

Fields

ConsoleMessage.type ● ConsoleMessageType enum

The kind of console message.

ConsoleMessage.text ● String scalar

The joined, human-readable message text (equivalent to puppeteer's msg.text()).

ConsoleMessage.args ● [String] list scalar

Each console argument, JSON-encoded and in order (equivalent to msg.args()).

ConsoleMessage.location ● ConsoleMessageLocation object

The source location the message originated from.

ConsoleMessage.timestamp ● Float scalar

Wall-clock milliseconds since the Unix epoch when the message was emitted.

Returned By

console subscription