stop when need to refresh captcha

This commit is contained in:
2024-11-15 22:20:03 +01:00
parent 5a2b88139e
commit 7cc4f87e0b
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -886,7 +886,7 @@ class CommandorPage {
this.isTerminated = true;
break;
case OCRResult.SLIDING_CAPTCHA_REFRESH:
await this.connect_to_browser(checkResult)
this.isTerminated = true;
break;
case OCRResult.SLIDING_CAPTCHA:
logWithDevice("will call this.slidingCaptcha()", this.device)
-3
View File
@@ -148,9 +148,6 @@ class OCRChecker {
} else {
await this.deleteFile(fileName)
}
// await this.deleteFile(screenShot)
// if (result.includes("rac"))
// return OCRResult.SLIDING_CAPTCHA_REFRESH
return OCRResult.SLIDING_CAPTCHA
} else if (result.includes(SLIDING_CAPTCHA_RETRY_FR)
) {