Skip to main content
Version: 24.34.0

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>