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

24 lines
635 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; [Frame](./puppeteer.frame.md) &gt; [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 | |
<b>Returns:</b>
Promise&lt;[ElementHandle](./puppeteer.elementhandle.md) \| null&gt;