Resolves the frame associated with the element, if any. Always exists for HTMLIFrameElements.
class ElementHandle {
abstract contentFrame(this: ElementHandle<HTMLIFrameElement>): Promise<Frame>;
}
Parameter | Type | Description |
---|---|---|
this | [ElementHandle](./puppeteer.elementhandle.md)<HTMLIFrameElement> |
Returns:
Promise<Frame>
class ElementHandle {
abstract contentFrame(): Promise<Frame | null>;
}
Returns:
Promise<Frame | null>