Skip to main content
Version: 19.8.1

Page.mainFrame() method

Signature:

class Page {
mainFrame(): Frame;
}

Returns:

Frame

The page's main frame.

Remarks

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