puppeteer/new-docs/puppeteer.page.exposefunction.md

24 lines
564 B
Markdown
Raw Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [Page](./puppeteer.page.md) &gt; [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&lt;void&gt;