puppeteer/docs/api/puppeteer.page.mainframe.md

21 lines
309 B
Markdown
Raw Normal View History

---
sidebar_label: Page.mainFrame
---
# Page.mainFrame() method
**Signature:**
```typescript
class Page {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.