コード例 #1
0
        public void AvailableMenuButtonsInDashboard()
        {
            LoginPage loginuser = new LoginPage(this.driver);

            loginuser.LoginUser("*****@*****.**", "P@ssw@rd");
            loginuser.AssertLoginUser();
            ArticlesDashboard dash = new ArticlesDashboard(this.driver);

            dash.AssertPageUrl();
            dash.AssertAvailableCreateButton();
            dash.AssertAvailableLogOutButton();
            dash.AssertAvailableManageUserButton();
            dash.AssertFunctionalMenuButtons();
        }
コード例 #2
0
        public void ArticleViewBackButtonDashboard()
        {
            LoginPage loginuser = new LoginPage(this.driver);

            loginuser.LoginUser("*****@*****.**", "P@ssw@rd");
            loginuser.AssertLoginUser();

            CreateArticle newArticle = new CreateArticle(this.driver);

            newArticle.ArticleNavigateTo();
            newArticle.ArticleCreate("qwertyPetyaBack", "browserPetyaBack");
            ArticlesDashboard dash = new ArticlesDashboard(this.driver);

            dash.ViewArticleByTitle("qwertyPetyaBack");
            dash.BackButtonArticle.Click();
            dash.AssertPageUrl();
            dash.LogOut.Click();
            dash.AssertAvailableLoginButton();
        }