public static void AssertErrorMessageForFullName(this RegistrationPage page, string text) { Assert.IsTrue(page.ErrorMessageForFullName.Displayed); StringAssert.Contains(text, page.ErrorMessageForFullName.Text); }
public static void AssertErrorMessageForPasswordMismatch(this RegistrationPage page, string text) { Assert.IsTrue(page.ErrorMessageForPasswordMismatch.Displayed); StringAssert.Contains(text, page.ErrorMessageForPasswordMismatch.Text); }
public static void AssertSuccessMessage(this RegistrationPage page, string text) { Assert.IsTrue(page.SuccessMessage.Displayed); StringAssert.Contains(text, page.SuccessMessage.Text); }