catch error for inputing solution
This commit is contained in:
@@ -197,10 +197,19 @@ class CommandorPage {
|
||||
await this.captchaSolver.start((solution) => {
|
||||
console.log("solution is: " + solution);
|
||||
if (solution !== ERROR_CAPTCHA_UNSOLVABLE) {
|
||||
try {
|
||||
page.evaluate((solution) => {
|
||||
document.getElementById("g-recaptcha-response").innerHTML = solution;
|
||||
}, solution)
|
||||
this.clickValid();}
|
||||
this.clickValid();
|
||||
}
|
||||
catch
|
||||
(e)
|
||||
{
|
||||
console.log(e)
|
||||
this.isTerminated = true;
|
||||
}
|
||||
}
|
||||
else{
|
||||
this.isTerminated = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user