public void ErrorAssert(string expected, RegistrationPageFull error) { bool errorExists = error.firstNameErrorMessage.Text.Contains(expected); Assert.IsTrue(errorExists, "Not correct error message"); }
public void FindRegisterButton(string expected, RegistrationPageFull button) { Assert.AreEqual(expected, button.registerButton.Text, "Not the registration page"); }