2022-08-06 14:49:20 +00:00
---
sidebar_label: ConsoleMessage
---
# ConsoleMessage class
ConsoleMessage objects are dispatched by page via the 'console' event.
2022-10-24 14:23:24 +00:00
**Signature:**
2022-08-06 14:49:20 +00:00
```typescript
export declare class ConsoleMessage
```
## Constructors
| Constructor | Modifiers | Description |
| --------------------------------------------------------------------------------------------------- | --------- | ------------------------------------------------------------------ |
| [(constructor)(type, text, args, stackTraceLocations) ](./puppeteer.consolemessage._constructor_.md ) | | Constructs a new instance of the < code > ConsoleMessage</ code > class |
## Methods
| Method | Modifiers | Description |
| -------------------------------------------------------- | --------- | ----------- |
| [args() ](./puppeteer.consolemessage.args.md ) | | |
| [location() ](./puppeteer.consolemessage.location.md ) | | |
| [stackTrace() ](./puppeteer.consolemessage.stacktrace.md ) | | |
| [text() ](./puppeteer.consolemessage.text.md ) | | |
| [type() ](./puppeteer.consolemessage.type.md ) | | |