2023-08-28 13:34:38 +00:00
|
|
|
---
|
|
|
|
sidebar_label: ElementHandle.contentFrame
|
|
|
|
---
|
|
|
|
|
|
|
|
# ElementHandle.contentFrame() method
|
|
|
|
|
|
|
|
Resolves the frame associated with the element, if any. Always exists for HTMLIFrameElements.
|
|
|
|
|
|
|
|
#### Signature:
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
class ElementHandle {
|
|
|
|
abstract contentFrame(this: ElementHandle<HTMLIFrameElement>): Promise<Frame>;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
2024-03-25 13:03:57 +00:00
|
|
|
<table><thead><tr><th>
|
2023-08-28 13:34:38 +00:00
|
|
|
|
2024-03-25 13:03:57 +00:00
|
|
|
Parameter
|
|
|
|
|
|
|
|
</th><th>
|
|
|
|
|
|
|
|
Type
|
|
|
|
|
|
|
|
</th><th>
|
|
|
|
|
|
|
|
Description
|
|
|
|
|
|
|
|
</th></tr></thead>
|
|
|
|
<tbody><tr><td>
|
|
|
|
|
|
|
|
this
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
[ElementHandle](./puppeteer.elementhandle.md)<HTMLIFrameElement>
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
</td></tr>
|
|
|
|
</tbody></table>
|
2023-08-28 13:34:38 +00:00
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
Promise<[Frame](./puppeteer.frame.md)>
|