stop when need to refresh captcha
This commit is contained in:
@@ -886,7 +886,7 @@ class CommandorPage {
|
|||||||
this.isTerminated = true;
|
this.isTerminated = true;
|
||||||
break;
|
break;
|
||||||
case OCRResult.SLIDING_CAPTCHA_REFRESH:
|
case OCRResult.SLIDING_CAPTCHA_REFRESH:
|
||||||
await this.connect_to_browser(checkResult)
|
this.isTerminated = true;
|
||||||
break;
|
break;
|
||||||
case OCRResult.SLIDING_CAPTCHA:
|
case OCRResult.SLIDING_CAPTCHA:
|
||||||
logWithDevice("will call this.slidingCaptcha()", this.device)
|
logWithDevice("will call this.slidingCaptcha()", this.device)
|
||||||
|
|||||||
@@ -148,9 +148,6 @@ class OCRChecker {
|
|||||||
} else {
|
} else {
|
||||||
await this.deleteFile(fileName)
|
await this.deleteFile(fileName)
|
||||||
}
|
}
|
||||||
// await this.deleteFile(screenShot)
|
|
||||||
// if (result.includes("rac"))
|
|
||||||
// return OCRResult.SLIDING_CAPTCHA_REFRESH
|
|
||||||
return OCRResult.SLIDING_CAPTCHA
|
return OCRResult.SLIDING_CAPTCHA
|
||||||
} else if (result.includes(SLIDING_CAPTCHA_RETRY_FR)
|
} else if (result.includes(SLIDING_CAPTCHA_RETRY_FR)
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user