示例#1
0
 //Check if button is working
 public static void AssertChangePasswordIsSuccessfull(this ChangePasswordPage page)
 {
     Assert.AreEqual("Your password has been changed.", page.SuccessfullChangedPasswordMessage.Text);
 }
示例#2
0
 //Check if button is working
 public static void AssertButtonIsWorking2(this ChangePasswordPage page)
 {
     Assert.AreEqual("The New password field is required.", page.SecondError.Text);
 }
示例#3
0
 //Check if Confirm password is entered
 public static void AssertEnteredPasswordsAreMissmatching(this ChangePasswordPage page)
 {
     Assert.AreEqual("The new password and confirmation password do not match.", page.IncorrectPasswordMessage.Text);
 }
示例#4
0
 //Check if button is working
 public static void AssertButtonIsWorking1(this ChangePasswordPage page)
 {
     Assert.AreEqual("The Current password field is required.", page.FirstError.Text);
 }
示例#5
0
 //Check if current password is incorrect
 public static void AssertCurrentPasswordIsIncorrect(this ChangePasswordPage page)
 {
     Assert.AreEqual("Incorrect password.", page.IncorrectPasswordMessage.Text);
 }