30 lines
892 B
Markdown
30 lines
892 B
Markdown
|
<!-- 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;
|
||
|
}, ...args: unknown[]): Promise<JSHandle>;
|
||
|
```
|
||
|
|
||
|
## Parameters
|
||
|
|
||
|
| Parameter | Type | Description |
|
||
|
| --- | --- | --- |
|
||
|
| selectorOrFunctionOrTimeout | string \| number \| Function | |
|
||
|
| options | { visible?: boolean; hidden?: boolean; timeout?: number; polling?: string \| number; } | |
|
||
|
| args | unknown\[\] | |
|
||
|
|
||
|
<b>Returns:</b>
|
||
|
|
||
|
Promise<[JSHandle](./puppeteer.jshandle.md)<!-- -->>
|
||
|
|