sdfdsf
This commit is contained in:
@@ -43,6 +43,11 @@ class SeleniumBrowser {
|
|||||||
.then(() => driver.findElement(By.css('body')))
|
.then(() => driver.findElement(By.css('body')))
|
||||||
.then(body => body.getAttribute('innerHTML'))
|
.then(body => body.getAttribute('innerHTML'))
|
||||||
.then(html => this.getHtml(html))
|
.then(html => this.getHtml(html))
|
||||||
|
.catch(error => {
|
||||||
|
return driver.findElement(By.css('body'))
|
||||||
|
.then(body => body.getAttribute('innerHTML'))
|
||||||
|
.then(html => this.getHtml(html))
|
||||||
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
driver.quit()
|
driver.quit()
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user