Skip to main content
Version: 25.4.0

Browser.launchPWA() method

Launches an installed Progressive Web App (PWA) and resolves with the page backing the app window.

Signature

class Browser {
abstract launchPWA(options: LaunchPWAOptions): Promise<Page>;
}

Parameters

Parameter

Type

Description

options

LaunchPWAOptions

Returns:

Promise<Page>

Remarks

Only available over a pipe connection. See Browser.installPWA().

PWA.launch resolves with the id of the launched _tab_ target. Puppeteer does not expose tab targets through Browser.targets(); this method instead resolves with the tab's child page target (the app's web contents). If Chromium focuses an existing app window, this returns that window's existing page.