Merge branch 'master' into feature/custom_adb
This commit is contained in:
@@ -88,6 +88,7 @@ class CommandorPage {
|
||||
this.shareCookiesWithRequests = shareCookiesWithRequests;
|
||||
this.port = port;
|
||||
this.sender = sender;
|
||||
this.slidingCaptchaSolver = new SlidingCaptchaSolver(this.device);
|
||||
this.ocrChecker = new OCRChecker(this.device, this.contact);
|
||||
// this.browserPackageName = "com.brave.browser";
|
||||
this.browserPackageName = "com.android.chrome";
|
||||
@@ -725,7 +726,6 @@ class CommandorPage {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
async slidingCaptcha(onResult) {
|
||||
logWithDevice("slidingCaptcha", this.device);
|
||||
if (this.device.model === "MI 5s" || this.device.model === "ASUS_X00QD" || this.device.model === "ASUS_Z012D" || this.device.model === "HUAWEI NXT-TL00") {
|
||||
@@ -733,9 +733,8 @@ class CommandorPage {
|
||||
await exec(cmd);
|
||||
await delay(5000);
|
||||
}
|
||||
let slidingCaptchaSolver = new SlidingCaptchaSolver(this.device);
|
||||
await slidingCaptchaSolver.solve(this.page, async (isSuccessful) => {
|
||||
console.log("check isAlwaysBlocked")
|
||||
await this.slidingCaptchaSolver.solve(this.page, async (isSuccessful) => {
|
||||
logWithDevice("check isAlwaysBlocked",this.device)
|
||||
this.isFillingFields = false
|
||||
onResult(isSuccessful)
|
||||
})
|
||||
|
||||
@@ -50,6 +50,7 @@ const MESSAGE_FILL_FIELD_FR_5 = "email vous sera envoyé pour vous"
|
||||
const MESSAGE_FILL_FIELD_FR_6 = "Prénom* Téléphone*"
|
||||
const WELCOME_MESSAGE_FR = "Bienvenue dans Chrome"
|
||||
const WELCOME_MESSAGE_FR_2 = "Chrome Connectez-vous"
|
||||
const WELCOME_MESSAGE_FR_3 = "Connectez-Vou's pour"
|
||||
const PAGE_OPTIMIZATION_CHROME_FR = "Vous pouvez changer d'avis a tout moment dans"
|
||||
const PAGE_OPTIMIZATION_CHROME_FR_6 = "Vous pouvez changer davis a tout moment"
|
||||
const PAGE_OPTIMIZATION_CHROME_FR_2 = "Vous pouvez modifier vos options a tout moment"
|
||||
@@ -152,6 +153,7 @@ class OCRChecker {
|
||||
return OCRResult.SLIDING_CAPTCHA
|
||||
} else if (result.includes(WELCOME_MESSAGE_FR)
|
||||
|| result.includes(WELCOME_MESSAGE_FR_2)
|
||||
|| result.includes(WELCOME_MESSAGE_FR_3)
|
||||
) {
|
||||
await this.deleteFile(fileName)
|
||||
return OCRResult.NEED_TO_CLICK_LATE_BTN
|
||||
|
||||
Reference in New Issue
Block a user