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