This commit is contained in:
spiduler
2020-10-23 11:40:10 +09:00
parent 6c0d059cbb
commit 1f98dd14c5

View File

@@ -75,6 +75,7 @@ class SeleniumBrowser {
.then(body => body.getAttribute('innerHTML')) .then(body => body.getAttribute('innerHTML'))
let htmlPromise = this.isCaptchaPage(html) ? this.resolveCaptcha(driver) : this.getHtml(driver, html, params) let htmlPromise = this.isCaptchaPage(html) ? this.resolveCaptcha(driver) : this.getHtml(driver, html, params)
html = await htmlPromise html = await htmlPromise
this.pool.release(driver)
return html return html
}) })
} else { } else {