correction when there is no recaptcha
This commit is contained in:
@@ -525,8 +525,15 @@ class CommandorPage {
|
||||
await this.fillEmail(page)
|
||||
await this.inputPassportId(page)
|
||||
await this.checkCGU(page)
|
||||
let pageContent = await page.content()
|
||||
let hasCaptcha = pageContent.includes("g-recaptcha-response")
|
||||
if (hasCaptcha) {
|
||||
await this.resolveCaptcha(page)
|
||||
await delay(10 * 1000)
|
||||
} else {
|
||||
await delay(2 * 1000)
|
||||
await this.clickValid();
|
||||
}
|
||||
this.isFillingFields = false
|
||||
}
|
||||
}
|
||||
@@ -583,6 +590,7 @@ class CommandorPage {
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
logWithDevice("exception received", this.device)
|
||||
log(e)
|
||||
}
|
||||
}
|
||||
@@ -815,7 +823,7 @@ class CommandorPage {
|
||||
}
|
||||
|
||||
async checkResultWithOcr() {
|
||||
console.log("checkResultWithOcr() called.")
|
||||
logWithDevice("checkResultWithOcr() called.", this.device)
|
||||
await delay(4000);
|
||||
let checkResult = await this.ocrChecker.get_result();
|
||||
console.log(checkResult);
|
||||
|
||||
Reference in New Issue
Block a user