コード例 #1
0
        /// <summary>
        /// method to import the LOP file
        /// </summary>
        public void LopImportFile()
        {
            //click the import button
            ImportFileElement.Click();
            Detail.WaitForDetail();

            //upload the file from sharepoint
            UploadFileFromSharepointElement.Click();

            SearchDocumentInSharepoint searchDoc = new SearchDocumentInSharepoint();

            searchDoc.ClickLopSearchButton();
            searchDoc.SelectFirstRecord();
            searchDoc.ClickOkButton();

            //wait untill the file name gets populated
            Detail.WaitForDetail();
            WaitUntilValueGetsPopulated(DataExchangeElements.CommonElements.FileName);

            SaveElement.Click();
            ////search for the lop file
            //WaitForAndClick(BrowserDefaults.TimeOut, DataExchangeElements.Import.UploadLOPSearchButton);
            ////wait for the search button to be enabled after searching
            //WaitUntilEnabled(DataExchangeElements.Import.SearchBtnEnabled);
            ////select the first record
            //WaitForAndClick(BrowserDefaults.TimeOut, DataExchangeElements.Import.FirstRecordSelect);
            ////click the Ok button
            //WaitForAndClick(BrowserDefaults.TimeOut, DataExchangeElements.Import.UploadLOPOkButton);
            ////wait untill the file name gets populated
            //WaitUntilValueGetsPopulated(DataExchangeElements.CommonElements.FileName);
            ////generate the import file
            //WaitForAndClick(BrowserDefaults.TimeOut, DataExchangeElements.CommonElements.SaveButton);
        }
コード例 #2
0
        /// <summary>
        /// method to import ctf file
        /// </summary>
        public void CtfImportFile()
        {
            ImportFileElement.Click();
            Detail.WaitForDetail();
            UploadFileFromSharepointElement.Click();

            SearchDocumentInSharepoint searchDoc = new SearchDocumentInSharepoint();

            searchDoc.ClickCtfSearchButton();
            searchDoc.SelectFirstRecord();
            searchDoc.ClickOkButton();

            //wait untill the file name gets populated
            Detail.WaitForDetail();
            WaitUntilValueGetsPopulated(DataExchangeElements.CommonElements.FileName);

            SaveElement.Click();
        }