示例#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);
 }