public static void AssertPasswordMismatchErrorMessage(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.ErrorMessagesForMismatchPassword.Displayed);
     StringAssert.Contains(text, page.ErrorMessagesForMismatchPassword.Text);
 }
 public static void AssertEmailErrorMessage(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.ErrorMessagesForInvalidEmail.Displayed);
     StringAssert.Contains(text, page.ErrorMessagesForInvalidEmail.Text);
 }
 public static void AssesrtSuccessMessage(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.SuccessMessage.Displayed);
     Assert.AreEqual(text, page.SuccessMessage.Text);
 }
 public static void AssertUserNameErrorMessage(this RegistrationPage page, string text)
 {
     Assert.IsTrue(page.ErrorMessagesForRequiredUserName.Displayed);
     StringAssert.Contains(text, page.ErrorMessagesForRequiredUserName.Text);
 }
 public static void AssertRegistrationPageIsOpen(this RegistrationPage page, string text)
 {
     Assert.AreEqual(text, page.Header.Text);
 }