public void Test0305_MoveFile( [ValuesAttribute("StandardFolder", "SecureFolder", "DatabaseFolder")] string folderFrom, [ValuesAttribute("SecureFolder", "StandardFolder", "DatabaseFolder")] string prefix, [ValuesAttribute("Birds.jpg", "Birds.pdf", "Birds.zip")] string fileToMove) { var folderTo = folderFrom + "MoveTo" + prefix; var fullFileNameToMove = prefix + fileToMove; Trace.WriteLine(BasePage.RunningTestKeyWord + "'Move File to Folder:'" + fullFileNameToMove); var adminFileManagementPage = new AdminFileManagementPage(_driver); adminFileManagementPage.OpenUsingButtons(_baseUrl); adminFileManagementPage.SelectFolderFromTreeView("Root", folderFrom); adminFileManagementPage.MoveFile(folderFrom, folderTo, fullFileNameToMove); adminFileManagementPage.SelectFolderFromTreeView("Root", folderTo); Trace.WriteLine(BasePage.TraceLevelPage + "Verify the File is present in the list"); Assert.IsTrue(adminFileManagementPage.ElementPresent(By.XPath(FileManagementPage.FileView + "//tr/td/div[@title = '" + fullFileNameToMove + "']")), "The File is not moved correctly"); adminFileManagementPage.SelectFolderFromTreeView("Root", folderFrom); Trace.WriteLine(BasePage.TraceLevelPage + "Verify the File is NOT present in the list"); Assert.IsFalse(adminFileManagementPage.ElementPresent(By.XPath(FileManagementPage.FileView + "//tr[contains(@style, 'visibility: visible;')]/td/div[@title = '" + fullFileNameToMove + "']")), "The File is not moved correctly"); }