This commit is contained in:
brow3c
2021-09-26 02:47:57 +09:00
parent 78c0d08fa8
commit 4db81f2251

View File

@@ -22,7 +22,10 @@ class NavigateService {
return this._getDriver(params)
.then(driver => {
return driver.get(params.uri).then(() => driver.findElement(By.css('body'))
.then(body => body.getAttribute('innerHTML')))
.then(body => {
console.log(body)
return body.getAttribute('innerHTML')
}))
})
}