From 28bcceb285ef7e4ccc0e4d0c1ba5a074fd29904b Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Sun, 31 Dec 2023 16:58:56 +0100 Subject: [PATCH] eg: enter date of birth if age confirmation pops up, #275 --- epic-games.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/epic-games.js b/epic-games.js index 55d9ad7..68a2dde 100644 --- a/epic-games.js +++ b/epic-games.js @@ -148,6 +148,12 @@ try { console.log(' This game contains mature content recommended only for ages 18+'); if (await page.locator('[data-testid="AgeSelect"]').count()) { console.error(' Got "To continue, please provide your date of birth" - This shouldn\'t happen due to cookie set above. Please report to https://github.com/vogler/free-games-claimer/issues/275'); + await page.locator('#month_toggle').click(); + await page.locator('#month_menu li:has-text("01")').click(); + await page.locator('#day_toggle').click(); + await page.locator('#day_menu li:has-text("01")').click(); + await page.locator('#year_toggle').click(); + await page.locator('#year_menu li:has-text("1987")').click(); } await page.click('button:has-text("Continue")', { delay: 111 }); await page.waitForTimeout(2000);