public static void AssertRegistrationErrorMessage(this RegistrationPage page, string text) { Assert.IsTrue(page.RegistrationErrorMessage.Displayed); StringAssert.Contains(text, page.RegistrationErrorMessage.Text); }
public static void AssertConfirmPasswordErrorMessage(this RegistrationPage page, string text) { Assert.IsTrue(page.ErrorMessageforConfirmPassword.Displayed); StringAssert.Contains(text, page.ErrorMessageforConfirmPassword.Text); }
public static void AssesrtSuccessMessage(this RegistrationPage page, string text) { Assert.IsTrue(page.RegistrationSuccessMessage.Displayed); Assert.AreEqual(text, page.RegistrationSuccessMessage.Text); }
public static void AssertHobbiesErrorMessage(this RegistrationPage page, string text) { Assert.IsTrue(page.ErrorMessagesForHobby.Displayed); StringAssert.Contains(text, page.ErrorMessagesForHobby.Text); }
public static void AssertRegistrationPageIsOpen(this RegistrationPage page, string text) { Assert.AreEqual(text, page.Header.Text); }