From 4231b7dd28892878ce2f2181984cff6e62dce127 Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Thu, 9 Nov 2023 02:43:43 +0100 Subject: [PATCH] gog: don't wait for screenshot to not be loading, closes #240 --- gog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gog.js b/gog.js index c6868512..74623e69 100644 --- a/gog.js +++ b/gog.js @@ -99,7 +99,7 @@ try { console.log(`Current free game: ${title} - ${url}`); db.data[user][title] ||= { title, time: datetime(), url }; if (cfg.dryrun) process.exit(1); - await page.locator('#giveaway:not(.is-loading)').waitFor(); // otherwise screenshot is sometimes with loading indicator instead of game title + // await page.locator('#giveaway:not(.is-loading)').waitFor(); // otherwise screenshot is sometimes with loading indicator instead of game title; #TODO fix, skipped due to timeout, see #240 await banner.screenshot({ path: screenshot(`${filenamify(title)}.png`) }); // overwrites every time - only keep first? // await banner.getByRole('button', { name: 'Add to library' }).click();