mirror of
https://github.com/hanzoai/puppeteer.git
synced 2026-09-24 17:02:14 +00:00
616 B
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>