puppeteer/docs/api/puppeteer.frame.parentframe.md

274 B

sidebar_label
Frame.parentFrame

Frame.parentFrame() method

The parent frame, if any. Detached and main frames return null.

Signature:

class Frame {
  parentFrame(): Frame | null;
}

Returns:

Frame | null