<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [Page](./puppeteer.page.md) &gt; [viewport](./puppeteer.page.viewport.md)

## Page.viewport() method

<b>Signature:</b>

```typescript
viewport(): Viewport | null;
```
<b>Returns:</b>

Viewport \| null

