public void CreateArticleWithoutSubmit() { LoginPage loginuser = new LoginPage(this.driver); //loginuser.LoginUser("*****@*****.**", "londa101"); loginuser.LoginUser("*****@*****.**", "P@ssw@rd"); CreateArticle newArticle = new CreateArticle(this.driver); newArticle.ArticleNavigateTo(); newArticle.AssertCancelButtonDisplayed(); newArticle.ArticleCreateWithoutSubmit("Title CancelButton", "Content CancelButton"); ArticlesDashboard dash = new ArticlesDashboard(this.driver); dash.AssertDeleteArticleDashboard("Article Test Nury"); loginuser.LogOffButton.Click(); }
public void DeleteOwnArticleFromList() { LoginPage loginuser = new LoginPage(this.driver); //loginuser.LoginUser("*****@*****.**", "londa101"); loginuser.LoginUser("*****@*****.**", "P@ssw@rd"); CreateArticle newArticle = new CreateArticle(this.driver); newArticle.ArticleNavigateTo(); newArticle.ArticleCreate("Own Deleted Article Test THREE", "Content Nury Test"); ArticlesDashboard dash = new ArticlesDashboard(this.driver); dash.ViewArticleByTitle("Own Deleted Article Test THREE"); DeleteArticle newDeleteArticle = new DeleteArticle(this.driver); newDeleteArticle.ArticleDeletefromList("Own Deleted Article Test THREE"); dash.AssertDeleteArticleDashboard("Own Deleted Article Test THREE"); dash.LogOut.Click(); 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(); }