This commit is contained in:
brow3c
2021-05-16 00:59:39 +09:00
parent e0594a5fbc
commit 55cbefd7bb

View File

@@ -25,13 +25,13 @@ class NavigateService {
let submit = driver.findElement(By.css(params.css.submit))
username.sendKeys(params.key.username)
password.sendKeys(params.key.password)
logger.info({ currentUrl: await driver.getCurrentUrl(), sessionId: await driver.getSession() }, 'aaaaa')
// logger.info({ currentUrl: await driver.getCurrentUrl(), sessionId: await driver.getSession() }, 'aaaaa')
return submit.click()
// WebElement
// return driver.findElement(By.css('body'))
}).then(body => {
}).then(async body => {
// return body.getAttribute('innerHTML')
return JSON.stringify((async() => ({ currentUrl: await driver.getCurrentUrl(), sessionId: await driver.getSession() }))())
return JSON.stringify({ currentUrl: await driver.getCurrentUrl(), sessionId: await driver.getSession() })
})
})
}