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