Back to Puppeteer

Browser.removeScreen() method

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

19.2.2482 B
Original Source

Browser.removeScreen() method

Removes a screen.

Signature

typescript
class Browser {
  abstract removeScreen(screenId: string): Promise<void>;
}

Parameters

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

Parameter

</th><th>

Type

</th><th>

Description

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

screenId

</td><td>

string

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

Returns:

Promise<void>

Remarks

Only supported in headless mode. Fails if the primary screen id is specified.