cache error when audo_number field not found

This commit is contained in:
2022-10-07 17:02:35 +02:00
parent d5648b748a
commit 3b136ee3c6
2 changed files with 9 additions and 4 deletions
+1
View File
@@ -293,6 +293,7 @@ class CommandorPage {
} }
async onPageLoad(currentPage) { async onPageLoad(currentPage) {
console.log("onPageLoad called, url is "+currentPage.url())
try { try {
let content = await currentPage.content(); let content = await currentPage.content();
let captcha_url = "geo.captcha-delivery.com/captcha"; let captcha_url = "geo.captcha-delivery.com/captcha";
+8 -4
View File
@@ -77,10 +77,14 @@ class GeoCaptchaSolver {
// fieldInputs[i].value = number_list[i]; // fieldInputs[i].value = number_list[i];
await delay(2000 + getRandomWaitTime()); await delay(2000 + getRandomWaitTime());
} }
if (number_list.isEmpty()) { try {
onResult(false) if (number_list.isEmpty()) {
} else { onResult(false)
onResult(true) } else {
onResult(true)
}
} catch (e) {
console.log(e)
} }
} }
) )