epic-games: don't click on 'play free now' button, but only 'free now'
This commit is contained in:
parent
4ff208a6b0
commit
90af31a210
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ try {
|
||||||
}
|
}
|
||||||
console.log('Signed in.');
|
console.log('Signed in.');
|
||||||
// click on each banner with 'Free Now'. TODO just extract the URLs and go to them in the loop
|
// click on each banner with 'Free Now'. TODO just extract the URLs and go to them in the loop
|
||||||
const game_sel = 'a:has-text("Free Now")';
|
const game_sel = 'span:text-is("Free Now")';
|
||||||
await page.waitForSelector(game_sel);
|
await page.waitForSelector(game_sel);
|
||||||
// const games = await page.$$(game_sel); // 'Element is not attached to the DOM' after navigation; had `for (const game of games) { await game.click(); ... }
|
// const games = await page.$$(game_sel); // 'Element is not attached to the DOM' after navigation; had `for (const game of games) { await game.click(); ... }
|
||||||
const n = run.n = await page.locator(game_sel).count();
|
const n = run.n = await page.locator(game_sel).count();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue