Как сделать дамп ?
page.on("request", (req) => {
console.log(`[request] ${req.url()}\n${JSON.stringify(req.headers())}\n\n`);
});
page.on("response", (res) => {
console.log(`[response] ${res.url()}\n${JSON.stringify(res.headers())}\n\n`);
});
page.on("requestfailed", (req) => {
console.log(`[requestfailed] ${req.url()}\n${JSON.stringify(req.headers())}\n\n`);
});