This commit is contained in:
brow3c
2021-05-18 00:34:36 +09:00
parent 0427a9d94a
commit f88b4e06bf

View File

@@ -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 => {