Files
puppeteer/docs/api/puppeteer.page.resize.md

616 B

sidebar_label
sidebar_label
Page.resize

Page.resize() method

Resizes the browser window of this page so that the content area (excluding browser UI) has the specified width and height.

Signature

class Page {
  abstract resize(params: {
    contentWidth: number;
    contentHeight: number;
  }): Promise<void>;
}

Parameters

Parameter

Type

Description

params

{ contentWidth: number; contentHeight: number; }

Returns:

Promise<void>