PagePage.mainFrameVersion: 21.5.0On this pagePage.mainFrame() methodThe page's main frame.Signature:class Page { abstract mainFrame(): Frame;}Returns:FrameRemarksPage is guaranteed to have a main frame which persists during navigations.