예제 #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);
 }
예제 #2
0
 public static void AssertNamesErrorMessage(this RegistrationPage page)
 {
     Assert.IsTrue(page.Elements.ErrorMessagesForNames.Displayed);
     StringAssert.Contains(Constants.ERROR_REQUIRED, page.Elements.ErrorMessagesForNames.Text);
 }
예제 #3
0
 public static void AssertInvalidEmailErrorMessage(this RegistrationPage page)
 {
     Assert.IsTrue(page.Elements.ErrorMessagesForEmail.Displayed);
     StringAssert.Contains(Constants.ERROR_EMAIL, page.Elements.ErrorMessagesForEmail.Text);
 }
예제 #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);
 }
예제 #5
0
 public static void AssertPhoneErrorMessage(this RegistrationPage page)
 {
     Assert.IsTrue(page.Elements.ErrorMessagesForPhone.Displayed);
     StringAssert.Contains(Constants.ERROR_PHONE, page.Elements.ErrorMessagesForPhone.Text);
 }