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) > [waitFor](./puppeteer.page.waitfor.md)
|
|
|
|
|
|
|
|
## Page.waitFor() method
|
|
|
|
|
|
|
|
<b>Signature:</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
waitFor(selectorOrFunctionOrTimeout: string | number | Function, options?: {
|
|
|
|
visible?: boolean;
|
|
|
|
hidden?: boolean;
|
|
|
|
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 |
|
|
|
|
| --- | --- | --- |
|
|
|
|
| selectorOrFunctionOrTimeout | string \| number \| Function | |
|
|
|
|
| options | { visible?: boolean; hidden?: boolean; 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)<!-- -->>
|
|
|
|
|