23 lines
598 B
Markdown
23 lines
598 B
Markdown
---
|
|
sidebar_label: ElementHandle.waitForSelector_1
|
|
---
|
|
# ElementHandle.waitForSelector() method
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
class ElementHandle {waitForSelector(selector: string, options?: Exclude<WaitForSelectorOptions, 'root'>): Promise<ElementHandle | null>;}
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| selector | string | |
|
|
| options | Exclude<[WaitForSelectorOptions](./puppeteer.waitforselectoroptions.md), 'root'> | <i>(Optional)</i> |
|
|
|
|
**Returns:**
|
|
|
|
Promise<[ElementHandle](./puppeteer.elementhandle.md) \| null>
|
|
|