mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
28 lines
764 B
Markdown
28 lines
764 B
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||
|
|
||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Page](./puppeteer.page.md) > [waitForFunction](./puppeteer.page.waitforfunction.md)
|
||
|
|
||
|
## Page.waitForFunction() method
|
||
|
|
||
|
<b>Signature:</b>
|
||
|
|
||
|
```typescript
|
||
|
waitForFunction(pageFunction: Function, options?: {
|
||
|
timeout?: number;
|
||
|
polling?: string | number;
|
||
|
}, ...args: unknown[]): Promise<JSHandle>;
|
||
|
```
|
||
|
|
||
|
## Parameters
|
||
|
|
||
|
| Parameter | Type | Description |
|
||
|
| --- | --- | --- |
|
||
|
| pageFunction | Function | |
|
||
|
| options | { timeout?: number; polling?: string \| number; } | |
|
||
|
| args | unknown\[\] | |
|
||
|
|
||
|
<b>Returns:</b>
|
||
|
|
||
|
Promise<[JSHandle](./puppeteer.jshandle.md)<!-- -->>
|
||
|
|