From c8e06404906d44395a00fdbdfecd208f2c052a38 Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Thu, 29 Aug 2024 12:46:28 +0200 Subject: [PATCH] eg: #371: dump HTML in case of EULA popup to find new locator https://github.com/vogler/free-games-claimer/issues/371 --- epic-games.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/epic-games.js b/epic-games.js index ff8f3e0..fbf5732 100644 --- a/epic-games.js +++ b/epic-games.js @@ -215,8 +215,10 @@ try { page.click('button:has-text("Yes, buy now")').catch(_ => { }); // Accept End User License Agreement (only needed once) - page.locator('input#agree').waitFor().then(async () => { + page.locator(':has-text("end user license agreement")').waitFor().then(async () => { console.log(' Accept End User License Agreement (only needed once)'); + console.log(page.innerHTML); + console.log('Please report the HTML above here: https://github.com/vogler/free-games-claimer/issues/371'); await page.locator('input#agree').check(); // TODO Bundle: got stuck here await page.locator('button:has-text("Accept")').click(); }).catch(_ => { });