public static void AssertUnsuccessRegistrationMessage(this RegistrationPage page, string text) { Assert.IsTrue(page.UnsuccessRegistrationMessage.Displayed); StringAssert.Contains(text, page.UnsuccessRegistrationMessage.Text); }
public static void AssertRegistrationPageIsOpen(this RegistrationPage page, string text) { Assert.AreEqual(text, page.Header.Text); }
public static void AssertPasswordStrengthMessage(this RegistrationPage page, string text) { Assert.IsTrue(page.PasswordStrength.Displayed); StringAssert.Contains(text, page.PasswordStrength.Text); }
public static void AssertUploadPicFileErrorMessage(this RegistrationPage page, string text) { Assert.IsTrue(page.ErrorMessagesForUploadPicFile.Displayed); StringAssert.Contains(text, page.ErrorMessagesForUploadPicFile.Text); }
public static void AssertHobbyErrorMessage(this RegistrationPage page, string text) { Assert.IsTrue(page.ErrorMessagesForHobby.Displayed); StringAssert.Contains(text, page.ErrorMessagesForHobby.Text); }
public static void AssertConfirmPasswordErrorMessage(this RegistrationPage page, string text) { Assert.IsTrue(page.ErrorMessagesForConfirmPassword.Displayed); StringAssert.Contains(text, page.ErrorMessagesForConfirmPassword.Text); }
public static void AssertSuccessMessage(this RegistrationPage page, string text) { Assert.IsTrue(page.SuccessMessage.Displayed, page.UnsuccessRegistrationMessage.Text); Assert.AreEqual(text, page.SuccessMessage.Text); }