eg: claim base game before add-on
This commit is contained in:
parent
3338d08a1d
commit
e49fa930e0
1 changed files with 2 additions and 0 deletions
|
|
@ -185,6 +185,8 @@ try {
|
||||||
const baseUrl = 'https://store.epicgames.com' + await page.locator('a:has-text("Overview")').getAttribute('href');
|
const baseUrl = 'https://store.epicgames.com' + await page.locator('a:has-text("Overview")').getAttribute('href');
|
||||||
console.log(' Base game:', baseUrl);
|
console.log(' Base game:', baseUrl);
|
||||||
// await page.click('a:has-text("Overview")');
|
// 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
|
} else { // GET
|
||||||
console.log(' Not in library yet! Click 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
|
await page.click('[data-testid="purchase-cta-button"]', { delay: 11 }); // got stuck here without delay (or mouse move), see #75, 1ms was also enough
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue