fix: use separate locators with OR for captcha detection
Some checks failed
build-and-push / lint (push) Failing after 8s
build-and-push / sonar (push) Has been skipped
build-and-push / docker (push) Has been skipped

This commit is contained in:
nocci 2026-03-07 14:31:27 +00:00
parent 6615cf02db
commit 3f241bf400

View file

@ -316,7 +316,7 @@ try {
}
};
const hasCaptcha = await page.locator(':is(.h_captcha_challenge iframe, text=Incorrect response)').count() > 0;
const hasCaptcha = (await page.locator('.h_captcha_challenge iframe').count() > 0) || (await page.locator('text=Incorrect response').count() > 0);
if (hasCaptcha) {
console.warn('Captcha/Incorrect response detected. Please solve manually in the browser.');
await notify('epic-games: captcha encountered; please solve manually in browser.');