tests: ensure password field is cleared before typing password
parent
a8dbf27faf
commit
68403fa681
|
@ -78,6 +78,10 @@ function CustomWorld() {
|
|||
return that.driver.findElement(seleniumWebdriver.By.id("username"))
|
||||
.sendKeys(username);
|
||||
})
|
||||
.then(function () {
|
||||
return that.driver.findElement(seleniumWebdriver.By.id("password"))
|
||||
.clear();
|
||||
})
|
||||
.then(function () {
|
||||
return that.driver.findElement(seleniumWebdriver.By.id("password"))
|
||||
.sendKeys(password);
|
||||
|
|
Loading…
Reference in New Issue