APIPage.mainFrameVersion: 17.0.0On 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.