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";
+4
View File
@@ -77,11 +77,15 @@ class GeoCaptchaSolver {
// fieldInputs[i].value = number_list[i]; // fieldInputs[i].value = number_list[i];
await delay(2000 + getRandomWaitTime()); await delay(2000 + getRandomWaitTime());
} }
try {
if (number_list.isEmpty()) { if (number_list.isEmpty()) {
onResult(false) onResult(false)
} else { } else {
onResult(true) onResult(true)
} }
} catch (e) {
console.log(e)
}
} }
) )
} else { } else {