[Home](./index.md) > [puppeteer](./puppeteer.md) > [Page](./puppeteer.page.md) > [mainFrame](./puppeteer.page.mainframe.md)
## Page.mainFrame() method
Signature:
```typescript
mainFrame(): Frame;
```
Returns:
[Frame](./puppeteer.frame.md)
The page's main frame.
## Remarks
Page is guaranteed to have a main frame which persists during navigations.