puppeteer/website/versioned_docs/version-22.6.3/api/puppeteer.consolemessage.md
release-please[bot] a63b8305ac
chore: release main (#12190)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2024-04-05 13:11:52 +00:00

1.3 KiB

sidebar_label
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, stackTraceLocations)

Constructs a new instance of the ConsoleMessage class

Methods

Method

Modifiers

Description

args()

An array of arguments passed to the console.

location()

The location of the console message.

stackTrace()

The array of locations on the stack of the console message.

text()

The text of the console message.

type()

The type of the console message.