Puppeteer 中文文档v25.8.0

Process.getRecentLogs() 方法

获取浏览器发出的最近日志(stderr + stdout)。

签名

class Process {
  getRecentLogs(): string[];
}

返回值:

string[]