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