puppeteer/website/versioned_docs/version-19.4.0/api/puppeteer.elementhandle.contentframe.md

20 lines
353 B
Markdown
Raw Normal View History

---
sidebar_label: ElementHandle.contentFrame
---
# ElementHandle.contentFrame() method
Resolves to the content frame for element handles referencing iframe nodes, or null otherwise
2022-10-24 14:31:12 +00:00
#### Signature:
```typescript
class ElementHandle {
contentFrame(): Promise<Frame | null>;
}
```
**Returns:**
Promise&lt;[Frame](./puppeteer.frame.md) \| null&gt;