[Home](./index.md) > [puppeteer](./puppeteer.md) > [Frame](./puppeteer.frame.md) > [waitForSelector](./puppeteer.frame.waitforselector.md) ## Frame.waitForSelector() method Signature: ```typescript waitForSelector(selector: string, options?: WaitForSelectorOptions): Promise; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | selector | string | | | options | [WaitForSelectorOptions](./puppeteer.waitforselectoroptions.md) | | Returns: Promise<[ElementHandle](./puppeteer.elementhandle.md) \| null>