puppeteer/docs/api/puppeteer.page.mainframe.md
2023-09-21 11:09:27 +02:00

304 B

sidebar_label
Page.mainFrame

Page.mainFrame() method

The page's main frame.

Signature:

class Page {
  abstract mainFrame(): Frame;
}

Returns:

Frame

Remarks

Page is guaranteed to have a main frame which persists during navigations.