Example #1
0
 public static void AssertShortPassErrorMessage(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.ErrorMessagesForShortPass.Displayed);
     StringAssert.Contains(text, page.ErrorMessagesForShortPass.Text);
 }
Example #2
0
 public static void AssertMessagesInvalideEmail(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.ErrorMessageForInvalideEmail.Displayed);
     StringAssert.Contains(text, page.ErrorMessageForInvalideEmail.Text);
 }
Example #3
0
 public static void AssertErrorMessageStrengthIndicatorMismatch(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.ErrorMessagesForStrengthIndicatorMismatch.Displayed);
     StringAssert.Contains(text, page.ErrorMessagesForStrengthIndicatorMismatch.Text);
 }
Example #4
0
 public static void AssertNamesErrorMessageDublicateEmail(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.ErrorMessagesForDublicateEmail.Displayed);
     StringAssert.Contains(text, page.ErrorMessagesForDublicateEmail.Text);
 }
Example #5
0
 public static void AssertNamesErrorMessageNoUserName(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.ErrorMessagesForNoUserName.Displayed);
     StringAssert.Contains(text, page.ErrorMessagesForNoUserName.Text);
 }
Example #6
0
 public static void AssertErrorMessageInvaldeFile(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.ErrorMessagesForInvalideFile.Displayed);
     StringAssert.Contains(text, page.ErrorMessagesForInvalideFile.Text);
 }
Example #7
0
 public static void AssertRegistrationPageIsOpen(this RegistrationPage page, string text)
 {
     Assert.AreEqual(text, page.Header.Text);
 }
Example #8
0
 public static void AssertErrorMessagagePasswordsDoNotMatch(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.ErrorMessageDifferentPassword.Displayed);
     StringAssert.Contains(text, page.ErrorMessageDifferentPassword.Text);
 }
 public static void AssertHobbyErrorMessage(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.ErrorMessagesForRequiredHobbies.Displayed);
     StringAssert.Contains(text, page.ErrorMessagesForRequiredHobbies.Text);
 }
 public static void AssertPasswordMismatchErrorMessage(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.ErrorMessagesForMismatchPassword.Displayed);
     StringAssert.Contains(text, page.ErrorMessagesForMismatchPassword.Text);
 }
Example #11
0
 public static void AssertErrorMessageExistingUsername(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.ErrorMessageExistingUsername.Displayed);
     StringAssert.Contains(text, page.ErrorMessageExistingUsername.Text);
 }
Example #12
0
 public static void AssertErrorMessageNoPasswordConfirmation(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.ErrorMessageNoPasswordConfirmation.Displayed);
     StringAssert.Contains(text, page.ErrorMessageNoPasswordConfirmation.Text);
 }
Example #13
0
 public static void AssertErrorMessageNoEmailAddress(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.ErrorMessageNoEmailAddress.Displayed);
     StringAssert.Contains(text, page.ErrorMessageNoEmailAddress.Text);
 }
Example #14
0
 public static void AssertMessagesDublicateUser(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.ErrorMessagesDublicateUser.Displayed);
     StringAssert.Contains(text, page.ErrorMessagesDublicateUser.Text);
 }
Example #15
0
 public static void AssesrtSuccessMessage(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.SuccessMessage.Displayed);
     Assert.AreEqual(text, page.SuccessMessage.Text);
 }
Example #16
0
 public static void AssertMessagesNoHobby(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.ErrorMessagesForNoHobby.Displayed);
     StringAssert.Contains(text, page.ErrorMessagesForNoHobby.Text);
 }
Example #17
0
 public static void AssertErrorInvalidNumber(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.ErrorMessagesForPhoneNumberDigits.Displayed);
     StringAssert.Contains(text, page.ErrorMessagesForPhoneNumberDigits.Text);
 }