This commit is contained in:
brow3c
2021-05-16 00:54:11 +09:00
parent 14ee359e23
commit b1bab69b72

View File

@@ -30,7 +30,7 @@ class NavigateService {
// return driver.findElement(By.css('body')) // return driver.findElement(By.css('body'))
}).then(body => { }).then(body => {
// return body.getAttribute('innerHTML') // return body.getAttribute('innerHTML')
return JSON.stringify({ currentUrl: driver.getCurrentUrl(), sessionId: driver.getSession() }) return JSON.stringify((async() => ({ currentUrl: await driver.getCurrentUrl(), sessionId: await driver.getSession() }))())
}) })
}) })
} }