gog: don't wait for screenshot to not be loading, closes #240
This commit is contained in:
parent
3ddf1720bb
commit
4231b7dd28
1 changed files with 1 additions and 1 deletions
2
gog.js
2
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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue