log path of recorded video

This commit is contained in:
Ralf Vogler 2023-09-18 12:49:23 +02:00
parent 2a4da3f49c
commit 1fbabbc0f2
4 changed files with 4 additions and 0 deletions

View file

@ -259,4 +259,5 @@ try {
}
}
if (cfg.debug) writeFileSync(path.resolve(cfg.dir.browser, 'cookies.json'), JSON.stringify(await context.cookies()));
if (page.video()) console.log('Recorded video:', await page.video().path())
await context.close();