public void Test_CreateFolder(string folderType, string folderName)
		{
			Trace.WriteLine(BasePage.RunningTestKeyWord + "'Create Folder:'");

			var adminFileManagementPage = new AdminFileManagementPage(_driver);
			adminFileManagementPage.OpenUsingButtons(_baseUrl);

			adminFileManagementPage.CreateFolder(folderType, folderName);

			Trace.WriteLine(BasePage.TraceLevelPage + "Verify the folder is present in the list");
			Assert.IsTrue(adminFileManagementPage.ElementPresent(By.XPath(FileManagementPage.FolderTreeView + "//li/div/span[text() = '" + folderName + "']")),
						"The Folder is not created correctly");
		}
Example #2
0
		public void CreateFolder(string folderType, string folderName)
		{
			Trace.WriteLine(BasePage.TraceLevelComposite + "'Create Folder:'");

			var adminFileManagementPage = new AdminFileManagementPage(_driver);
			adminFileManagementPage.OpenUsingButtons(_baseUrl);

			adminFileManagementPage.CreateFolder(folderType, folderName);
		}