add onResult callback
This commit is contained in:
@@ -329,7 +329,11 @@ class CommandorPage {
|
||||
log("audioBtn found")
|
||||
audioBtn.click()
|
||||
let captchaSolver = new GeoCaptchaSolver(this.page)
|
||||
await captchaSolver.solve()
|
||||
await captchaSolver.solve((isSuccessful) => {
|
||||
if (!isSuccessful) {
|
||||
this.isTerminated = true
|
||||
}
|
||||
})
|
||||
} else {
|
||||
log("audioBtn not found")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user