eg: waitFor order confirmation to be attached instead of visible, #233
This commit is contained in:
parent
ad2301c3fd
commit
04787909c7
1 changed files with 1 additions and 1 deletions
|
|
@ -227,7 +227,7 @@ try {
|
|||
// console.info(' Saved a screenshot of hcaptcha challenge to', p);
|
||||
// console.error(' Got hcaptcha challenge. To avoid it, get a link from https://www.hcaptcha.com/accessibility'); // TODO save this link in config and visit it daily to set accessibility cookie to avoid captcha challenge?
|
||||
}).catch(_ => { }); // may time out if not shown
|
||||
await page.waitForSelector('text=Thanks for your order!');
|
||||
await page.locator('text=Thanks for your order!').waitFor({state: 'attached'});
|
||||
db.data[user][game_id].status = 'claimed';
|
||||
db.data[user][game_id].time = datetime(); // claimed time overwrites failed/dryrun time
|
||||
console.log(' Claimed successfully!');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue