public static void AssertEmptyFormFields(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.ErrorMessageForEmptyFormFields.Displayed);
     Assert.AreEqual(text, page.ErrorMessageForEmptyFormFields.Text);
 }
 public static void AssertRegistrationPageRegisterHeaderIsDisplayed(this RegistrationPage page, string text)
 {
     Assert.AreEqual(text, page.RegisterHeader.Text);
 }
 public static void AssertTooLongPasswordMessage(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.ErrorMessageForTooLongPassword.Displayed);
     Assert.AreEqual(text, page.ErrorMessageForTooLongPassword.Text);
 }
 public static void AssertUnmatchedPasswordMessage(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.ErrorMessageForUnmatchedPasswords.Displayed);
     Assert.AreEqual(text, page.ErrorMessageForUnmatchedPasswords.Text);
 }
 public static void AssertMissingFullNameMessage(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.ErrorMessageForMissingFullName.Displayed);
     Assert.AreEqual(text, page.ErrorMessageForMissingFullName.Text);
 }
 public static void AssertInvalidEmailMessage(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.ErrorMessageForInvalidEmail.Displayed);
     Assert.AreEqual(text, page.ErrorMessageForInvalidEmail.Text);
 }
 public static void AssertRegisterWithValidData(this RegistrationPage page)
 {
     Assert.IsTrue(page.LogOffButton.Displayed);
 }