Exemple #1
0
 public static void AssertDiferentPasswordsErrorMessage(this RegistrationPage page)
 {
     Assert.IsTrue(page.Elements.ErrorMessagesForConfirmPassword.Displayed);
     StringAssert.Contains(Constants.ERROR_PASSWORD_NOT_MATCH, page.Elements.ErrorMessagesForConfirmPassword.Text);
 }
Exemple #2
0
 public static void AssertNamesErrorMessage(this RegistrationPage page)
 {
     Assert.IsTrue(page.Elements.ErrorMessagesForNames.Displayed);
     StringAssert.Contains(Constants.ERROR_REQUIRED, page.Elements.ErrorMessagesForNames.Text);
 }
Exemple #3
0
 public static void AssertInvalidEmailErrorMessage(this RegistrationPage page)
 {
     Assert.IsTrue(page.Elements.ErrorMessagesForEmail.Displayed);
     StringAssert.Contains(Constants.ERROR_EMAIL, page.Elements.ErrorMessagesForEmail.Text);
 }
Exemple #4
0
 public static void AssertShortPasswordErrorMessage(this RegistrationPage page)
 {
     Assert.IsTrue(page.Elements.ErrorMessagesForPassword.Displayed);
     StringAssert.Contains(Constants.ERROR_SHORT_PASSWORD, page.Elements.ErrorMessagesForPassword.Text);
 }
Exemple #5
0
 public static void AssertPhoneErrorMessage(this RegistrationPage page)
 {
     Assert.IsTrue(page.Elements.ErrorMessagesForPhone.Displayed);
     StringAssert.Contains(Constants.ERROR_PHONE, page.Elements.ErrorMessagesForPhone.Text);
 }