From af374551b79fa1c6ce2dcce17a4afd1331540942 Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Sun, 11 Sep 2022 22:10:06 +0200 Subject: [PATCH] recordVideo will record a .webm video for each page navigated --- epic-games.js | 1 + 1 file changed, 1 insertion(+) diff --git a/epic-games.js b/epic-games.js index 4bc9a82..5b92398 100644 --- a/epic-games.js +++ b/epic-games.js @@ -27,6 +27,7 @@ const context = await chromium.launchPersistentContext(dirs.browser, { viewport: { width: SCREEN_WIDTH, height: SCREEN_HEIGHT }, userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.83 Safari/537.36', // see replace of Headless in util.newStealthContext. TODO update if browser is updated! locale: "en-US", // ignore OS locale to be sure to have english text for locators + // recordVideo: { dir: 'data/videos/' }, // will record a .webm video for each page navigated args: [ // don't want to see bubble 'Restore pages? Chrome didn't shut down correctly.', but flags below don't work. '--disable-session-crashed-bubble', '--restore-last-session',