2020-06-04 14:56:45 +00:00
|
|
|
<!-- 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
|
2020-06-23 11:55:42 +00:00
|
|
|
waitForFunction(pageFunction: Function | string, options?: {
|
2020-06-04 14:56:45 +00:00
|
|
|
timeout?: number;
|
|
|
|
polling?: string | number;
|
2020-07-01 11:44:08 +00:00
|
|
|
}, ...args: SerializableOrJSHandle[]): Promise<JSHandle>;
|
2020-06-04 14:56:45 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
2020-06-23 11:55:42 +00:00
|
|
|
| pageFunction | Function \| string | |
|
2020-06-04 14:56:45 +00:00
|
|
|
| options | { timeout?: number; polling?: string \| number; } | |
|
2020-07-01 11:44:08 +00:00
|
|
|
| args | [SerializableOrJSHandle](./puppeteer.serializableorjshandle.md)<!-- -->\[\] | |
|
2020-06-04 14:56:45 +00:00
|
|
|
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
|
|
|
Promise<[JSHandle](./puppeteer.jshandle.md)<!-- -->>
|
|
|
|
|