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