public void Test_RenameFolderUsingToolBar(string folderName, string nameToEdit, string newName) { Trace.WriteLine(BasePage.RunningTestKeyWord + "'Rename Folder:'"); var adminFileManagementPage = new AdminFileManagementPage(_driver); adminFileManagementPage.OpenUsingButtons(_baseUrl); adminFileManagementPage.SelectFolderFromTreeView("Root", folderName); adminFileManagementPage.RenameUsingToolBar(folderName, nameToEdit, newName); adminFileManagementPage.SelectFolderFromTreeView("Root", folderName); Trace.WriteLine(BasePage.TraceLevelPage + "Verify the Folder is NOT present in the list"); Assert.IsFalse(adminFileManagementPage.ElementPresent(By.XPath(FileManagementPage.FileView + "//tr/td/div[@title = '" + nameToEdit + "']")), "The Folder is not renamed correctly"); }