2020-06-04 14:56:45 +00:00
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home ](./index.md ) > [puppeteer ](./puppeteer.md ) > [ConsoleMessage ](./puppeteer.consolemessage.md )
## ConsoleMessage class
2020-06-22 12:52:39 +00:00
ConsoleMessage objects are dispatched by page via the 'console' event.
2020-06-04 14:56:45 +00:00
< b > Signature:< / b >
```typescript
export declare class ConsoleMessage
```
## Constructors
| Constructor | Modifiers | Description |
| --- | --- | --- |
2020-09-25 13:27:13 +00:00
| [(constructor)(type, text, args, stackTraceLocations) ](./puppeteer.consolemessage._constructor_.md ) | | Constructs a new instance of the < code > ConsoleMessage</ code > class |
2020-06-04 14:56:45 +00:00
## Methods
| Method | Modifiers | Description |
| --- | --- | --- |
| [args() ](./puppeteer.consolemessage.args.md ) | | |
| [location() ](./puppeteer.consolemessage.location.md ) | | |
2020-09-25 13:27:13 +00:00
| [stackTrace() ](./puppeteer.consolemessage.stacktrace.md ) | | |
2020-06-04 14:56:45 +00:00
| [text() ](./puppeteer.consolemessage.text.md ) | | |
| [type() ](./puppeteer.consolemessage.type.md ) | | |