diff --git a/start.js b/start.js index 9bd78db4f8..43988095f9 100644 --- a/start.js +++ b/start.js @@ -101,6 +101,7 @@ async function writeLogs(sessions, dir) { fs.writeFileSync(appHtmlName, documentHtml); fs.writeFileSync(networkLogName, session.networkLogs()); fs.writeFileSync(consoleLogName, session.consoleLogs()); + await session.page.screenshot({path: `${userLogDir}/screenshot.png`}); } return logs; }