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

            createArticlePage.NavigateTo();

            createArticlePage.AssertCreateArticlePageIsDisplayed("Create Article");
        }
예제 #2
0
        public void CAP_TC6_Create_ArticlePageDisplayed()
        {
            var loginPage = new LoginPage(driver);
            var user      = new LoginUser("*****@*****.**", "1234");

            loginPage.NavigateTo();
            loginPage.FillRegistrationForm(user);
            var createArticlePage = new CreateArticlePage(driver);

            createArticlePage.NavigateTo();
            createArticlePage.AssertCreateArticlePageIsDisplayed("Create Article");
        }
예제 #3
0
        public void CAP_TC7_Create_ArticleContentResize()
        {
            var createArticlePage = new CreateArticlePage(driver);

            createArticlePage.NavigateTo();

            Actions builder = new Actions(this.driver);
            var     action  = builder.MoveToElement(createArticlePage.Content)
                              .MoveByOffset((createArticlePage.Content.Size.Width / 2) - 2, (createArticlePage.Content.Size.Height / 2) - 2)
                              .ClickAndHold()
                              .MoveByOffset(300, 300)
                              .Release();

            action.Perform();
            createArticlePage.AssertCreateArticlePageIsDisplayed("Create Article");
            createArticlePage.AssertCreateArticleComtentresized(300);
        }