public void SuccessfulChangePasswordUser()
        {
            RegisterUser newUser1 = new RegisterUser(this.driver);

            newUser1.RegisterUserNavigateTo();
            newUser1.RegisterationOfUser("*****@*****.**", "Petya Nikolova", "P@ssw@rd");
            newUser1.AssertNewUser("*****@*****.**");
            ArticlesDashboard dash = new ArticlesDashboard(this.driver);

            dash.LogOut.Click();

            LoginPage loginuser = new LoginPage(this.driver);

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

            ManageUser changePassword = new ManageUser(this.driver);

            changePassword.PasswordUser = loginuser.PASSWORD;

            changePassword.ManageNavigateTo();
            changePassword.AssertManageUserURL();

            changePassword.ChangePasswordLink.Click();
            changePassword.AssertManageUserPageURL();
            changePassword.FillChangePasswordForm("Vel1koLep!e");

            changePassword.AssertSuccessfulMessageChangePassword();

            dash.LogOut.Click();
            dash.AssertAvailableLoginButton();
        }
        public void SignAuthorInDashboard()
        {
            LoginPage loginuser = new LoginPage(this.driver);

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

            CreateArticle newArticle = new CreateArticle(this.driver);

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

            dash.AssertAuthorSign("--author");
            dash.LogOut.Click();
            dash.AssertAvailableLoginButton();
        }
        public void AvailableScrollBarDashboard()
        {
            Thread.Sleep(10000);
            LoginPage loginuser = new LoginPage(this.driver);

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

            newArticle.ArticleNavigateTo();
            newArticle.ArticleCreate("qwertyQWERTYqwertyQWERTYqwertyQWERTYqwertyQWERTY", "browserBROWSERbrowserBROWSERbrowserBROWSERbrowserBROWSERbrowserBROWSERbrowserBROWSERbrowserBROWSERbrowserBROWSERbrowserBROWSERbrowserBROWSER");
            ArticlesDashboard dash = new ArticlesDashboard(this.driver);

            dash.AssertArticleDetailsDashboard("qwertyQWERTYqwertyQWERTYqwertyQWERTYqwertyQWERTY", "browserBROWSERbrowserBROWSERbrowserBROWSERbrowserBROWSERbrowserBROWSERbrowserBROWSERbrowserBROWSERbrowserBROWSERbrowserBROWSERbrowserBROWSER", "--author");
            dash.AssertAvailableScrolBarsDashboard();
            dash.LogOut.Click();
            dash.AssertAvailableLoginButton();
        }
        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();
        }
        public void CreateArticle()
        {
            this.driver.Manage().Window.Maximize();
            this.driver.Navigate().GoToUrl(BrowserHost.RootUrl);

            LoginPage loginuser = new LoginPage(this.driver);

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

            CreateArticle newArticle = new CreateArticle(this.driver);

            newArticle.ArticleNavigateTo();
            newArticle.ArticleCreate("New Article Test One", "Content of article");

            ArticlesDashboard dash = new ArticlesDashboard(this.driver);

            dash.AssertArticleDetailsDashboard("New Article Test One", "Content of article", "--author");
            dash.LogOut.Click();
            dash.AssertAvailableLoginButton();
        }
        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();
        }
        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();
        }
        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();
        }