ue: wait 2s before checking cart, #44
This commit is contained in:
parent
2ceccdae6b
commit
d3d22b1582
1 changed files with 1 additions and 0 deletions
|
|
@ -121,6 +121,7 @@ try {
|
||||||
if (!ids.length) {
|
if (!ids.length) {
|
||||||
console.log('Nothing to claim');
|
console.log('Nothing to claim');
|
||||||
} else {
|
} else {
|
||||||
|
await page.waitForTimeout(2000);
|
||||||
const price = (await page.locator('.shopping-cart .total .price').innerText()).split(' ');
|
const price = (await page.locator('.shopping-cart .total .price').innerText()).split(' ');
|
||||||
console.log('Price: ', price[1], 'instead of', price[0]);
|
console.log('Price: ', price[1], 'instead of', price[0]);
|
||||||
if (price[1] != '0') {
|
if (price[1] != '0') {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue