From a4d39b6a6e35138426ddd332464104b907d39b3b Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Thu, 29 Dec 2022 15:23:22 +0100 Subject: [PATCH] pg: fix for #41 --- prime-gaming.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prime-gaming.js b/prime-gaming.js index c7f6618..f56cafd 100644 --- a/prime-gaming.js +++ b/prime-gaming.js @@ -125,7 +125,7 @@ try { if (process.env.DRYRUN) continue; await (await card.$('text=Claim')).click(); // await page.waitForNavigation(); - await Promise.any([page.click('button:has-text("Claim now")'), page.click('button:has-text("Complete Claim")')]); // waits for navigation + await Promise.any([page.click('button:has-text("Claim now")'), page.click('button:has-text("Complete Claim")'), page.waitForSelector('div:has-text("Link game account")')]); // waits for navigation const store_text = await (await page.$('[data-a-target="hero-header-subtitle"]')).innerText(); // Full game for PC [and MAC] on: gog.com, Origin, Legacy Games, EPIC GAMES, Battle.net // 3 Full PC Games on Legacy Games