Skip to main content
Version: 20.8.3

Page.mainFrame() method

The page's main frame.

Signature:

class Page {
mainFrame(): Frame;
}

Returns:

Frame

Remarks

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