2022-07-05 13:41:43 +00:00
|
|
|
---
|
|
|
|
sidebar_label: ElementHandle.contentFrame
|
|
|
|
---
|
|
|
|
|
|
|
|
# ElementHandle.contentFrame() method
|
|
|
|
|
2023-08-23 16:00:34 +00:00
|
|
|
Resolves the frame associated with the element, if any. Always exists for HTMLIFrameElements.
|
2022-07-05 13:41:43 +00:00
|
|
|
|
2022-10-24 07:07:05 +00:00
|
|
|
#### Signature:
|
2022-07-05 13:41:43 +00:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
class ElementHandle {
|
2023-08-23 16:00:34 +00:00
|
|
|
abstract contentFrame(this: ElementHandle<HTMLIFrameElement>): Promise<Frame>;
|
2022-07-05 13:41:43 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2023-08-23 14:58:18 +00:00
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --------- | ---------------------------------------------------------------------- | ----------- |
|
|
|
|
| this | [ElementHandle](./puppeteer.elementhandle.md)<HTMLIFrameElement> | |
|
|
|
|
|
2022-07-05 13:41:43 +00:00
|
|
|
**Returns:**
|
|
|
|
|
2023-08-23 14:58:18 +00:00
|
|
|
Promise<[Frame](./puppeteer.frame.md)>
|