Exemplo n.º 1
0
 //Check if button is working
 public static void AssertChangePasswordIsSuccessfull(this ChangePasswordPage page)
 {
     Assert.AreEqual("Your password has been changed.", page.SuccessfullChangedPasswordMessage.Text);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 5
0
 //Check if current password is incorrect
 public static void AssertCurrentPasswordIsIncorrect(this ChangePasswordPage page)
 {
     Assert.AreEqual("Incorrect password.", page.IncorrectPasswordMessage.Text);
 }