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) > [(constructor)](./puppeteer.consolemessage._constructor_.md)
|
|
|
|
|
|
|
|
## ConsoleMessage.(constructor)
|
|
|
|
|
|
|
|
Constructs a new instance of the `ConsoleMessage` class
|
|
|
|
|
|
|
|
<b>Signature:</b>
|
|
|
|
|
|
|
|
```typescript
|
2020-09-25 13:27:13 +00:00
|
|
|
constructor(type: ConsoleMessageType, text: string, args: JSHandle[], stackTraceLocations: ConsoleMessageLocation[]);
|
2020-06-04 14:56:45 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
2020-06-22 12:52:39 +00:00
|
|
|
| type | [ConsoleMessageType](./puppeteer.consolemessagetype.md) | |
|
2020-06-04 14:56:45 +00:00
|
|
|
| text | string | |
|
|
|
|
| args | [JSHandle](./puppeteer.jshandle.md)<!-- -->\[\] | |
|
2020-09-25 13:27:13 +00:00
|
|
|
| stackTraceLocations | [ConsoleMessageLocation](./puppeteer.consolemessagelocation.md)<!-- -->\[\] | |
|
2020-06-04 14:56:45 +00:00
|
|
|
|