mirror of
https://github.com/hanzoai/puppeteer.git
synced 2026-09-24 17:02:14 +00:00
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
1.0 KiB
1.0 KiB
sidebar_label
| sidebar_label |
|---|
| Browser.launchPWA |
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 |
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.