<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [ConsoleMessage](./puppeteer.consolemessage.md) &gt; [location](./puppeteer.consolemessage.location.md)

## ConsoleMessage.location() method

<b>Signature:</b>

```typescript
location(): ConsoleMessageLocation;
```
<b>Returns:</b>

[ConsoleMessageLocation](./puppeteer.consolemessagelocation.md)

The location of the console message.

