Puppeteer 中文文档v25.8.0

Browser.getWindowBounds() 方法

获取指定窗口的bounds

签名

class Browser {
  abstract getWindowBounds(windowId: WindowId): Promise<WindowBounds>;
}

参数

参数

类型

说明

windowId

WindowId

返回值:

Promise<WindowBounds>