From 6b13287b61ff684f1d8c6e157c079c8e1f6fc4fd Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Thu, 11 May 2023 18:38:44 +0200 Subject: [PATCH] eg: click 'Yes, buy now' if 'This edition contains something you already have. Still interested?' Happened for add-on https://store.epicgames.com/en-US/p/the-sims-4--the-daring-lifestyle-bundle --- epic-games.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/epic-games.js b/epic-games.js index 7e1bf62..37310ea 100644 --- a/epic-games.js +++ b/epic-games.js @@ -155,6 +155,9 @@ try { // click Continue if 'Device not supported. This product is not compatible with your current device.' - avoided by Windows userAgent? page.click('button:has-text("Continue")').catch(_ => { }); // needed since change from Chromium to Firefox? + // click 'Yes, buy now' if 'This edition contains something you already have. Still interested?' + page.click('button:has-text("Yes, buy now")').catch(_ => { }); + // Accept End User License Agreement (only needed once) page.locator('input#agree').waitFor().then(async () => { console.log('Accept End User License Agreement (only needed once)');