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 |
| --- | --- | --- |
| [(constructor)(type, text, args, location) ](./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 ) | | |
| [text() ](./puppeteer.consolemessage.text.md ) | | |
| [type() ](./puppeteer.consolemessage.type.md ) | | |