sdfsdf
This commit is contained in:
@@ -25,13 +25,13 @@ class NavigateService {
|
|||||||
let submit = driver.findElement(By.css(params.css.submit))
|
let submit = driver.findElement(By.css(params.css.submit))
|
||||||
username.sendKeys(params.key.username)
|
username.sendKeys(params.key.username)
|
||||||
password.sendKeys(params.key.password)
|
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()
|
return submit.click()
|
||||||
// WebElement
|
// WebElement
|
||||||
// return driver.findElement(By.css('body'))
|
// return driver.findElement(By.css('body'))
|
||||||
}).then(body => {
|
}).then(async body => {
|
||||||
// return body.getAttribute('innerHTML')
|
// 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() })
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user