puppeteer/new-docs/puppeteer.page.setviewport.md

23 lines
497 B
Markdown
Raw Normal View History

<!-- 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; [setViewport](./puppeteer.page.setviewport.md)
## Page.setViewport() method
<b>Signature:</b>
```typescript
setViewport(viewport: Viewport): Promise<void>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| viewport | Viewport | |
<b>Returns:</b>
Promise&lt;void&gt;