diff --git a/src/component/SeleniumBrowser.js b/src/component/SeleniumBrowser.js index 989a403..345468f 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) + let html = await driver.get(uri).catch(() => driver.get(uri)) .then(() => driver.findElement(By.css('body'))) .then(body => body.getAttribute('innerHTML')) .catch(e => {