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