From 1628b16aeaf6dbc5669b491cbaeb8b79bfae49e6 Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Wed, 2 Feb 2022 13:42:39 +0100 Subject: [PATCH] prime-gaming: gog: code: first input is hidden, check for text --- prime-gaming.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prime-gaming.js b/prime-gaming.js index 3d95f45..ad8a95a 100644 --- a/prime-gaming.js +++ b/prime-gaming.js @@ -100,7 +100,7 @@ const TIMEOUT = 20 * 1000; // 20s, default is 30s // await page.waitForNavigation(); await page.click('button:has-text("Claim now")'); // TODO only Origin shows a key, check for 'Claimed' or code - const code = await page.inputValue('input'); + const code = await page.inputValue('input[type="text"]'); console.log('Code to redeem game:', code); // await page.pause(); await page.goto(URL_CLAIM, {waitUntil: 'domcontentloaded'});