mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
24 lines
677 B
Markdown
24 lines
677 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Frame](./puppeteer.frame.md) > [waitForXPath](./puppeteer.frame.waitforxpath.md)
|
|
|
|
## Frame.waitForXPath() method
|
|
|
|
<b>Signature:</b>
|
|
|
|
```typescript
|
|
waitForXPath(xpath: string, options?: WaitForSelectorOptions): Promise<ElementHandle | null>;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| xpath | string | |
|
|
| options | [WaitForSelectorOptions](./puppeteer.waitforselectoroptions.md) | |
|
|
|
|
<b>Returns:</b>
|
|
|
|
Promise<[ElementHandle](./puppeteer.elementhandle.md) \| null>
|
|
|