puppeteer/new-docs/puppeteer.page.waitforxpath.md

28 lines
736 B
Markdown
Raw Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [Page](./puppeteer.page.md) &gt; [waitForXPath](./puppeteer.page.waitforxpath.md)
## Page.waitForXPath() method
<b>Signature:</b>
```typescript
waitForXPath(xpath: string, options?: {
visible?: boolean;
hidden?: boolean;
timeout?: number;
}): Promise<ElementHandle | null>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| xpath | string | |
| options | { visible?: boolean; hidden?: boolean; timeout?: number; } | |
<b>Returns:</b>
Promise&lt;[ElementHandle](./puppeteer.elementhandle.md) \| null&gt;