[Home](./index.md) > [puppeteer](./puppeteer.md) > [Page](./puppeteer.page.md) > [waitForSelector](./puppeteer.page.waitforselector.md)
## Page.waitForSelector() method
Signature:
```typescript
waitForSelector(selector: string, options?: {
visible?: boolean;
hidden?: boolean;
timeout?: number;
}): Promise;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| selector | string | |
| options | { visible?: boolean; hidden?: boolean; timeout?: number; } | |
Returns:
Promise<[ElementHandle](./puppeteer.elementhandle.md) \| null>