예제 #1
0
        public void CAP_TC4_Create_ArticleWithoutTitle()
        {
            var createArticlePage = new CreateArticlePage(driver);

            createArticlePage.NavigateTo();
            createArticlePage.Content.SendKeys("tralala");
            createArticlePage.CreateArticleButton.Click();

            createArticlePage.AssertCreateArticleWithoutTitle("The Title field is required.");
        }
예제 #2
0
        public void CAP_TC4_Create_ArticleWithoutTitle()
        {
            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.Content.SendKeys("tralala");
            createArticlePage.CreateArticleButton.Click();
            createArticlePage.AssertCreateArticleWithoutTitle("The Title field is required.");
        }