diff --git a/src/component/SeleniumBrowser.js b/src/component/SeleniumBrowser.js index 345468f..25ab7a5 100644 --- a/src/component/SeleniumBrowser.js +++ b/src/component/SeleniumBrowser.js @@ -21,7 +21,7 @@ class SeleniumBrowser { if (uri.indexOf('://') > 3) { return poolingService.acquire() .then(async driver => { - let html = await driver.get(uri).catch(() => driver.get(uri)) + let html = await driver.get(uri).catch(() => poolingService.acquire().then(driver => driver.get(uri))) .then(() => driver.findElement(By.css('body'))) .then(body => body.getAttribute('innerHTML')) .catch(e => {