Exemplo n.º 1
0
        public void CancleEditButtonFuntionality()
        {
            HomePage homePage = new HomePage(this.driver);

            homePage.NavigateTo();

            LoginPage logPage = new LoginPage(this.driver);

            logPage.NavigateTo();
            var loginUser = AccessExcelData.GetTestDataLoging("LoginSuccessfully");

            logPage.FillLoginForm(loginUser);

            homePage.EditPostLink.Click();

            EditPost editPage = new EditPost(this.driver);
            var      postUser = AccessExcelData.GetTestDataPosts("CancelButtonEditPost").ToString();

            editPage.EditButton.Click();
            editPage.TitleToEdit.Clear();
            editPage.TitleToEdit.SendKeys(postUser);
            editPage.ContentToEdit.Clear();
            editPage.ContentToEdit.SendKeys(postUser);
            editPage.CancelButtonPost.Click();

            editPage.AssertPostEditCancelButton("Test Post Creation");
        }
Exemplo n.º 2
0
        public void DuplicatePostEdit()
        {
            HomePage homePage = new HomePage(this.driver);

            homePage.NavigateTo();

            LoginPage logPage = new LoginPage(this.driver);

            logPage.NavigateTo();
            var loginUser = AccessExcelData.GetTestDataLoging("LoginSuccessfully");

            logPage.FillLoginForm(loginUser);

            homePage.EditPostLink.Click();

            EditPost editPage = new EditPost(this.driver);
            var      postUser = AccessExcelData.GetTestDataPosts("CreatePostSuccessfuly");

            editPage.NavigateTo();
            editPage.FillEditPostForm(postUser);

            editPage.AssertPostEditCancelButton("Test Post Creation");
        }