Example #1
0
        public void UploadDocument(TestDataSheet data, string parentNode)
        {
            WaitForProgressToComplete(10);
            HoverElement(PageHeader);
            IWebElement rootNode = OpenTreeNode(parentNode);

            rootNode.OpenTreeNode("Robert-72Hh")
            .OpenTreeNode("Projects")
            .OpenTreeNode("Housing-RJvk")
            .OpenTreeNode("Others");
            GetElement(AddFolder).ClickIt();
            var folderName = UtilManager.RandomAlphaNumString(4);

            GetElement(FolderName).EnterText(folderName);
            GetElement(Submit).ClickIt();

            WaitForProgressToComplete(15);
            GetElement(UploadFile).ClickIt();
            var purhcaseOrderFile = Path.Combine(ConfigManager.DataFolder, "Sample.pdf");

            SelectFile(BrowseFile, purhcaseOrderFile);
            WaitForProgressToComplete(10);
            GetElement(Submit).ClickIt();
        }