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