Back to Puppeteer

Browser.addScreen() method

website/versioned_docs/version-24.40.0/api/puppeteer.browser.addscreen.md

19.2.2595 B
Original Source

Browser.addScreen() method

Adds a new screen, returns the added screen information object.

Signature

typescript
class Browser {
  abstract addScreen(params: AddScreenParams): Promise<ScreenInfo>;
}

Parameters

<table><thead><tr><th>

Parameter

</th><th>

Type

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

params

</td><td>

AddScreenParams

</td><td> </td></tr> </tbody></table>

Returns:

Promise<ScreenInfo>

Remarks

Only supported in headless mode.