public static void AssertDiferentPasswordsErrorMessage(this RegistrationPage page) { Assert.IsTrue(page.Elements.ErrorMessagesForConfirmPassword.Displayed); StringAssert.Contains(Constants.ERROR_PASSWORD_NOT_MATCH, page.Elements.ErrorMessagesForConfirmPassword.Text); }
public static void AssertNamesErrorMessage(this RegistrationPage page) { Assert.IsTrue(page.Elements.ErrorMessagesForNames.Displayed); StringAssert.Contains(Constants.ERROR_REQUIRED, page.Elements.ErrorMessagesForNames.Text); }
public static void AssertInvalidEmailErrorMessage(this RegistrationPage page) { Assert.IsTrue(page.Elements.ErrorMessagesForEmail.Displayed); StringAssert.Contains(Constants.ERROR_EMAIL, page.Elements.ErrorMessagesForEmail.Text); }
public static void AssertShortPasswordErrorMessage(this RegistrationPage page) { Assert.IsTrue(page.Elements.ErrorMessagesForPassword.Displayed); StringAssert.Contains(Constants.ERROR_SHORT_PASSWORD, page.Elements.ErrorMessagesForPassword.Text); }
public static void AssertPhoneErrorMessage(this RegistrationPage page) { Assert.IsTrue(page.Elements.ErrorMessagesForPhone.Displayed); StringAssert.Contains(Constants.ERROR_PHONE, page.Elements.ErrorMessagesForPhone.Text); }