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