This commit is contained in:
spiduler
2020-10-21 23:41:56 +09:00
parent e8615cc26e
commit 7c604ed2a0
2 changed files with 12 additions and 5 deletions

View File

@@ -112,6 +112,10 @@ class SeleniumBrowser {
.then(html => {
this.pool.release(driver)
return html
}).catch(err => {
logger.error({message: err.message}, 'Wait element failed')
this.pool.release(driver)
return ''
})
} else {
this.pool.release(driver)