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