<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) > [puppeteer](./puppeteer.md) > [Page](./puppeteer.page.md) > [setUserAgent](./puppeteer.page.setuseragent.md) ## Page.setUserAgent() method <b>Signature:</b> ```typescript setUserAgent(userAgent: string): Promise<void>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | userAgent | string | | <b>Returns:</b> Promise<void>