コード例 #1
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();
        }
コード例 #2
0
        public void EditOwnArticleFromList()
        {
            LoginPage loginuser = new LoginPage(this.driver);

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

            CreateArticle newArticle = new CreateArticle(this.driver);

            newArticle.ArticleNavigateTo();
            newArticle.ArticleCreate("Article Test THREE", "Content Nury Test");

            ArticlesDashboard dash           = new ArticlesDashboard(this.driver);
            EditArticle       newEditArticle = new EditArticle(this.driver);

            dash.ViewArticleByTitle("Article Test THREE");
            newEditArticle.ArticleEdit("Article Test Nury3", "This is the text of article Nury3");
            dash.AssertArticleDetailsDashboard("Article Test Nury3", "This is the text of article Nury3", "--author");
            loginuser.LogOffButton.Click();
        }
コード例 #3
0
        public void DeleteArticleFromListWithoutLogin()
        {
            LoginPage loginuser = new LoginPage(this.driver);

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

            CreateArticle newArticle = new CreateArticle(this.driver);

            newArticle.ArticleNavigateTo();
            newArticle.ArticleCreate("Deleted Article Test THREE", "Content Nury Test");
            ArticlesDashboard dash = new ArticlesDashboard(this.driver);

            dash.LogOut.Click();

            DeleteArticle newDeleteArticle = new DeleteArticle(this.driver);

            dash.ViewArticleByTitle("Deleted Article Test THREE");
            newDeleteArticle.ArticleDeleteButton("Deleted Article Test THREE");
            loginuser.AssertAccountLogin();
            dash.AssertAvailableLoginButton();
        }
コード例 #4
0
        public void ArticleViewDeleteButtonDashboard()
        {
            LoginPage loginuser = new LoginPage(this.driver);

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

            CreateArticle newArticle = new CreateArticle(this.driver);

            newArticle.ArticleNavigateTo();
            newArticle.ArticleCreate("qwertyPetyaDelete", "browserPetya");
            ArticlesDashboard dash = new ArticlesDashboard(this.driver);

            dash.ViewArticleByTitle("qwertyPetyaDelete");

            DeleteArticle deleteArticle = new DeleteArticle(this.driver);

            deleteArticle.ArticleDeletefromList("qwertyPetyaDelete");
            dash.AssertDeleteArticleDashboard("qwertyPetyaDelete");
            dash.LogOut.Click();
            dash.AssertAvailableLoginButton();
        }
コード例 #5
0
        public void ArticleViewEditButtonDashboard()
        {
            LoginPage loginuser = new LoginPage(this.driver);

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

            CreateArticle newArticle = new CreateArticle(this.driver);

            newArticle.ArticleNavigateTo(  );
            newArticle.ArticleCreate("qwertyEdit", "browser");
            ArticlesDashboard dash = new ArticlesDashboard(this.driver);

            dash.ViewArticleByTitle("qwertyEdit");

            EditArticle editArticle = new EditArticle(this.driver);

            editArticle.ArticleEdit("qwerty Update", "browser Update");
            dash.AssertArticleDetailsDashboard("qwerty Update", "browser Update", "--author");
            dash.LogOut.Click();
            dash.AssertAvailableLoginButton();
        }