コード例 #1
0
        public string  AddNotes()
        {
            string recordId = SelectaRecordFromResultsGrid("Candidate");

            InvokeHeaderMenu("Actions");
            ClickMenuItem("Add note");
            PopUpPage notesPopup = new PopUpPage(this.DriverContext);

            notesPopup.AddNote("Regression Testing");
            return(recordId);
        }
コード例 #2
0
 protected bool CheckForLatestNotes()
 {
     try
     {
         PopUpPage notesPopup = new PopUpPage(this.DriverContext);
         notesPopup.SelectTab("notes");
         return(notesPopup.GetLatestNoteText().Trim().Equals("Regression Testing"));
     }
     catch (NoSuchElementException ex)
     {
         logger.Error("No Such Element exception  in  CheckForLatestNotes :{0}", ex.Message);
     }
     catch (InvalidOperationException ex)
     {
         logger.Error("Invalid operation exception  in  CheckForLatestNotes :{0}", ex.Message);
     }
     return(false);
 }
コード例 #3
0
        protected bool ChangeRecordStatus(string moduleName)
        {
            SortGrid();
            string    recordId = SelectaRecordFromResultsGrid(moduleName);
            PopUpPage popup    = new PopUpPage(DriverContext);

            InvokeQuickViewOnRecord(recordId);
            string status = popup.GetCurrentStatus();

            popup.ClosePopUp();
            InvokeHeaderMenu("Actions");
            ClickMenuItem("Change status");
            popup.ChangeStatus("Regressson Status Change");

            Driver.WaitForAjax();
            InvokeQuickViewOnRecord(recordId);
            return(popup.GetCurrentStatus() != status? true :false);
        }