stop when need to refresh captcha
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user