28 lines
736 B
Markdown
28 lines
736 B
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||
|
|
||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Page](./puppeteer.page.md) > [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<[ElementHandle](./puppeteer.elementhandle.md) \| null>
|
||
|
|