Skip to content

Commit

Permalink
mention error if game is already claimed
Browse files Browse the repository at this point in the history
  • Loading branch information
vogler committed Apr 27, 2023
1 parent 3ccec68 commit 254b674
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions epic-games.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ try {
// I Agree button is only shown for EU accounts! https://github.com/vogler/free-games-claimer/pull/7#issuecomment-1038964872
const btnAgree = page.locator('button:has-text("I Agree")');
btnAgree.waitFor().then(() => btnAgree.click()).catch(_ => { }); // EU: wait for and click 'I Agree'

// May fail if game is already claimed with text 'Sorry, there is an error with your cart and we cannot complete the purchase. Please close this window and check your cart list.'

try {
// context.setDefaultTimeout(100 * 1000); // give time to solve captcha, iframe goes blank after 60s?
const captcha = page.locator('#h_captcha_challenge_checkout_free_prod iframe');
Expand Down

0 comments on commit 254b674

Please sign in to comment.