Puppeteer 中文文档v25.8.0

LaunchPWAOptions 接口

Browser.launchPWA() 的选项。

签名

export interface LaunchPWAOptions

属性

属性

修饰符

类型

说明

默认值

manifestId

string

来自 Web 应用的 manifest 文件的 id。

timeout

optional

number

等待应用的页面目标出现的最大毫秒数。默认为 30 秒。传入 0 可禁用超时。

url

optional

string

应用作用域内要启动的可选 URL。默认为应用的起始 URL。