24 lines
653 B
Markdown
24 lines
653 B
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||
|
|
||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Frame](./puppeteer.frame.md) > [waitForSelector](./puppeteer.frame.waitforselector.md)
|
||
|
|
||
|
## Frame.waitForSelector() method
|
||
|
|
||
|
<b>Signature:</b>
|
||
|
|
||
|
```typescript
|
||
|
waitForSelector(selector: string, options: WaitForSelectorOptions): Promise<ElementHandle | null>;
|
||
|
```
|
||
|
|
||
|
## Parameters
|
||
|
|
||
|
| Parameter | Type | Description |
|
||
|
| --- | --- | --- |
|
||
|
| selector | string | |
|
||
|
| options | WaitForSelectorOptions | |
|
||
|
|
||
|
<b>Returns:</b>
|
||
|
|
||
|
Promise<[ElementHandle](./puppeteer.elementhandle.md) \| null>
|
||
|
|