Skip to content

Commit

Permalink
eg: waitFor order confirmation to be attached instead of visible, #233
Browse files Browse the repository at this point in the history
  • Loading branch information
vogler committed Oct 12, 2023
1 parent ad2301c commit 0478790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion epic-games.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ try {
// console.info(' Saved a screenshot of hcaptcha challenge to', p);
// console.error(' Got hcaptcha challenge. To avoid it, get a link from https://www.hcaptcha.com/accessibility'); // TODO save this link in config and visit it daily to set accessibility cookie to avoid captcha challenge?
}).catch(_ => { }); // may time out if not shown
await page.waitForSelector('text=Thanks for your order!');
await page.locator('text=Thanks for your order!').waitFor({state: 'attached'});
db.data[user][game_id].status = 'claimed';
db.data[user][game_id].time = datetime(); // claimed time overwrites failed/dryrun time
console.log(' Claimed successfully!');
Expand Down

0 comments on commit 0478790

Please sign in to comment.