should use adb to refresh page
This commit is contained in:
@@ -25,6 +25,9 @@ const BLOCKED_MSG_FR = "avez été bloqué"
|
||||
const CHECKING_MSG_FR = "Verifying"
|
||||
const ERR_CACHE_MISS = "ERR_CACHE_MISS"
|
||||
const SLIDING_CAPTCHA_FR = "Glissez vers la droite"
|
||||
const MESSAGE_FILL_FIELD_FR = "Demande de rendez-vous pour"
|
||||
const WELCOME_MESSAGE_FR = "Bienvenue dans Chrome"
|
||||
const PAGE_OPTIMIZATION_CHROME_FR = "Oui, j'accepte"
|
||||
|
||||
class OCRChecker {
|
||||
|
||||
@@ -55,6 +58,10 @@ class OCRChecker {
|
||||
return OCRResult.RECHECK
|
||||
} else if (result.includes(SLIDING_CAPTCHA_FR)) {
|
||||
return OCRResult.SLIDING_CAPTCHA
|
||||
} else if (result.includes(MESSAGE_FILL_FIELD_FR)) {
|
||||
return OCRResult.FILL_FIELD
|
||||
} else if (result.includes(WELCOME_MESSAGE_FR)) {
|
||||
return OCRResult.NEED_TO_CLICK_LATE_BTN
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user