sdffd
This commit is contained in:
@@ -87,6 +87,7 @@ class SeleniumBrowser {
|
||||
} while (res.request == 'CAPCHA_NOT_READY')
|
||||
this.isRecaptchaReseponseEmpty = false
|
||||
//this.pool.release(driver)
|
||||
driver.quit()
|
||||
return res
|
||||
}).then(res => {
|
||||
logger.debug(res, '2captcha solved')
|
||||
@@ -101,6 +102,7 @@ class SeleniumBrowser {
|
||||
}).catch(error => {
|
||||
logger.error({ message: error.message }, 'Error occured while process with 2captcha')
|
||||
//this.pool.release(driver)
|
||||
driver.quit()
|
||||
})
|
||||
return ''
|
||||
} else {
|
||||
@@ -111,10 +113,11 @@ class SeleniumBrowser {
|
||||
.then(body => body.getAttribute('innerHTML'))
|
||||
.then(html => {
|
||||
//this.pool.release(driver)
|
||||
driver.quit()
|
||||
return html
|
||||
})
|
||||
} else {
|
||||
return html
|
||||
return html
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user