<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) > [puppeteer](./puppeteer.md) > [ConsoleMessage](./puppeteer.consolemessage.md) > [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.