APIPagePage.mainFrameVersion: 18.0.5On this pagePage.mainFrame() methodSignature:class Page { mainFrame(): Frame;}Returns:FrameThe page's main frame.RemarksPage is guaranteed to have a main frame which persists during navigations.