Skip to content

Commit

Permalink
eg: claim base game before add-on
Browse files Browse the repository at this point in the history
  • Loading branch information
vogler committed May 23, 2024
1 parent 3338d08 commit e49fa93
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions epic-games.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ try {
const baseUrl = 'https://store.epicgames.com' + await page.locator('a:has-text("Overview")').getAttribute('href');
console.log(' Base game:', baseUrl);
// await page.click('a:has-text("Overview")');
urls.push(baseUrl); // add base game to the list of games to claim
urls.push(url); // add add-on itself again
} else { // GET
console.log(' Not in library yet! Click GET.');
await page.click('[data-testid="purchase-cta-button"]', { delay: 11 }); // got stuck here without delay (or mouse move), see #75, 1ms was also enough
Expand Down

0 comments on commit e49fa93

Please sign in to comment.