From d3d22b1582a1ec9f6df32f0438d3828eab03bebb Mon Sep 17 00:00:00 2001 From: Ralf Vogler Date: Fri, 2 Jun 2023 00:47:48 +0200 Subject: [PATCH] ue: wait 2s before checking cart, #44 --- unrealengine.js | 1 + 1 file changed, 1 insertion(+) diff --git a/unrealengine.js b/unrealengine.js index af3fa51..871c82e 100644 --- a/unrealengine.js +++ b/unrealengine.js @@ -121,6 +121,7 @@ try { if (!ids.length) { console.log('Nothing to claim'); } else { + await page.waitForTimeout(2000); const price = (await page.locator('.shopping-cart .total .price').innerText()).split(' '); console.log('Price: ', price[1], 'instead of', price[0]); if (price[1] != '0') {