public void RegisterFailed() { // Navigate to test page landingPage.NavigateTo(); landingPage.InitElements(); landingPage.Click_RegisterPopupButton(); var registerPage = new RegisterPageModel(driver); registerPage.NavigateTo(); registerPage.InitElements(); // Do something registerPage.EnterRegisterCredentials("Fname", "", "*****@*****.**", "Password12345"); registerPage.Click_CreateAccountButton(); // Assert something Assert.True(registerPage.AnyRegistrationErrors()); }
public void RegisterSuccessful() { // Navigate to test page landingPage.NavigateTo(); landingPage.InitElements(); landingPage.Click_RegisterPopupButton(); var registerPage = new RegisterPageModel(driver); registerPage.NavigateTo(); registerPage.InitElements(); // Do something registerPage.EnterRegisterCredentials("Fname", "Lname", "*****@*****.**", "Password12345#"); registerPage.Click_CreateAccountButton(); // Assert something Assert.Empty(registerPage.GetValidationErrors()); }