From 28146c7d69c2c6f11616b6a5755d90bbbb0600f5 Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Fri, 7 Apr 2023 10:23:19 +0200 Subject: [PATCH] eg: 2s delay after click Continue, #120 --- epic-games.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/epic-games.js b/epic-games.js index 67eba3c..2c98a31 100644 --- a/epic-games.js +++ b/epic-games.js @@ -117,7 +117,8 @@ try { // click Continue if 'This game contains mature content recommended only for ages 18+' if (await page.locator('button:has-text("Continue")').count() > 0) { console.log(' This game contains mature content recommended only for ages 18+'); - await page.click('button:has-text("Continue")', { delay: 11 }); + await page.click('button:has-text("Continue")', { delay: 111 }); + await page.waitForTimeout(2000); } const title = await page.locator('h1').first().innerText();