Exemple #1
0
 public static void AssertWrongPhoneMessage(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.ErrorMessageWrongPhone.Displayed);
     StringAssert.Contains(text, page.ErrorMessageWrongPhone.Text);
 }
Exemple #2
0
 public static void AssertWithInvalidPicture(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.ErrorMessageWitIncorectPicture.Displayed);
     StringAssert.Contains(text, page.ErrorMessageWitIncorectPicture.Text);
 }
Exemple #3
0
 public static void AssertShortPassErrorMessage(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.ErrorMessageShortPassword.Displayed);
     StringAssert.Contains(text, page.ErrorMessageShortPassword.Text);
 }
Exemple #4
0
 public static void AssertPassDoesnNotMatchMessage(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.ErrorMessagePasswordDoesNotMatch.Displayed);
     StringAssert.Contains(text, page.ErrorMessagePasswordDoesNotMatch.Text);
 }
Exemple #5
0
 public static void AssertExistUserErrorMessage(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.ErrorMessageExistUser.Displayed);
     StringAssert.Contains(text, page.ErrorMessageExistUser.Text);
 }
Exemple #6
0
 public static void AssertConfirmPasswordErrorMessage(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.ErrorMessageWithoutConfirmPass.Displayed);
     StringAssert.Contains(text, page.ErrorMessageWithoutConfirmPass.Text);
 }
Exemple #7
0
 public static void AssertUserNameErrorMessage(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.ErrorMessageWithoutUserName.Displayed);
     StringAssert.Contains(text, page.ErrorMessageWithoutUserName.Text);
 }
Exemple #8
0
 public static void AssertMessageForInvalidMail(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.ErrorMessageInvalidEmail.Displayed);
     Assert.AreEqual(text, page.ErrorMessageInvalidEmail.Text);
 }
Exemple #9
0
 public static void AssesrtSuccessMessage(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.SuccessMessage.Displayed);
     Assert.AreEqual(text, page.SuccessMessage.Text);
 }