public void DeleteFolder(string folderName) { Trace.WriteLine(BasePage.TraceLevelComposite + "'Delete Folder from Treeview:'" + folderName); var adminFileManagementPage = new AdminFileManagementPage(_driver); adminFileManagementPage.OpenUsingButtons(_baseUrl); adminFileManagementPage.DeleteFolderFromTreeView(folderName); }
public void Test_DeleteFolder(string folderName) { Trace.WriteLine(BasePage.RunningTestKeyWord + "'Delete Folder:'"); var adminFileManagementPage = new AdminFileManagementPage(_driver); adminFileManagementPage.OpenUsingButtons(_baseUrl); adminFileManagementPage.DeleteFolderFromTreeView(folderName); Trace.WriteLine(BasePage.TraceLevelPage + "Verify the folder is NOT present in the list"); Assert.IsFalse(adminFileManagementPage.ElementPresent(By.XPath(FileManagementPage.FolderTreeView + "//li/div/span[text() = '" + folderName + "']")), "The Folder is not deleted correctly"); }