<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) > [puppeteer](./puppeteer.md) > [ConsoleMessage](./puppeteer.consolemessage.md) > [text](./puppeteer.consolemessage.text.md) ## ConsoleMessage.text() method <b>Signature:</b> ```typescript text(): string; ``` <b>Returns:</b> string