ue: wait 2s before checking cart, #44

This commit is contained in:
Ralf Vogler 2023-06-02 00:47:48 +02:00
parent 2ceccdae6b
commit d3d22b1582

View file

@ -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') {