public void CAP_TC5_Create_ArticleWithoutTitle_Content() { var createArticlePage = new CreateArticlePage(driver); createArticlePage.NavigateTo(); createArticlePage.CreateArticleButton.Click(); createArticlePage.AssertCreateArticleWithoutTitle_andContent("The Title field is required.", "The Content field is required."); }
public void CAP_TC5_Create_ArticleWithoutTitle_Content() { var loginPage = new LoginPage(driver); var user = new LoginUser("*****@*****.**", "1234"); loginPage.NavigateTo(); loginPage.FillRegistrationForm(user); var createArticlePage = new CreateArticlePage(driver); createArticlePage.NavigateTo(); createArticlePage.Title.Clear(); createArticlePage.Content.Clear(); createArticlePage.CreateArticleButton.Click(); createArticlePage.AssertCreateArticleWithoutTitle_andContent("The Title field is required.", "The Content field is required."); }