log 'DRYRUN=1 -> Skip order!'

This commit is contained in:
Ralf Vogler 2023-04-27 19:14:48 +02:00
parent a235ce7915
commit bc8a89f365

View file

@ -175,7 +175,10 @@ try {
}).catch(_ => { }); }).catch(_ => { });
if (cfg.debug) await page.pause(); if (cfg.debug) await page.pause();
if (cfg.dryrun) continue; if (cfg.dryrun) {
console.log(' DRYRUN=1 -> Skip order!');
continue;
}
// Playwright clicked before button was ready to handle event, https://github.com/vogler/free-games-claimer/issues/84#issuecomment-1474346591 // Playwright clicked before button was ready to handle event, https://github.com/vogler/free-games-claimer/issues/84#issuecomment-1474346591
await iframe.locator('button:has-text("Place Order"):not(:has(.payment-loading--loading))').click({ delay: 11 }); await iframe.locator('button:has-text("Place Order"):not(:has(.payment-loading--loading))').click({ delay: 11 });