fix: correct Playwright selector syntax for OR condition
This commit is contained in:
parent
6ec9157a42
commit
6194e3eff3
1 changed files with 1 additions and 1 deletions
|
|
@ -316,7 +316,7 @@ try {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const hasCaptcha = await page.locator('.h_captcha_challenge iframe, text=Incorrect response').count() > 0;
|
const hasCaptcha = await page.locator('.h_captcha_challenge iframe | text=Incorrect response').count() > 0;
|
||||||
if (hasCaptcha) {
|
if (hasCaptcha) {
|
||||||
console.warn('Captcha/Incorrect response detected. Please solve manually in the browser.');
|
console.warn('Captcha/Incorrect response detected. Please solve manually in the browser.');
|
||||||
await notify('epic-games: captcha encountered; please solve manually in browser.');
|
await notify('epic-games: captcha encountered; please solve manually in browser.');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue