enriche search text

This commit is contained in:
2022-12-09 17:58:50 +01:00
parent 8215749553
commit 1faa2143ef
+16 -9
View File
@@ -83,16 +83,23 @@ class GeoCaptchaSolver {
// fieldInputs[i].value = number_list[i];
await delay(500 + getRandomWaitTime());
}
let content = await captcha_container.innerHTML()
console.log("inner container is " + content)
try {
if (number_list.length === 0) {
onResult(false)
} else {
onResult(true)
if (!this.page.isClosed()) {
try {
let content = await captcha_container.innerHTML()
console.log("inner container is " + content)
try {
if (number_list.length === 0) {
onResult(false)
} else {
onResult(true)
}
} catch (e) {
console.log(e)
}
} catch (e) {
console.log(e)
}
} catch (e) {
console.log(e)
}
}
)