Puppeteer 中文文档v25.8.0

Page.windowId() 方法

返回页面的 window id。

签名

class Page {
  abstract windowId(): Promise<WindowId>;
}

返回值:

Promise<WindowId>