puppeteer/docs/api/puppeteer.frame.frameelement.md

346 B

sidebar_label
Frame.frameElement

Frame.frameElement() method

Signature:

class Frame {
  frameElement(): Promise<HandleFor<HTMLIFrameElement> | null>;
}

Returns:

Promise<HandleFor<HTMLIFrameElement> | null>

The frame element associated with this frame (if any).