コード例 #1
0
        public PupilPickerDialog ClickAddPupil()
        {
            _addPupilButton.ClickByJS();
            Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));

            return(new PupilPickerDialog());
        }
コード例 #2
0
 public void Cancel()
 {
     if (_cancelButton.IsExist())
     {
         _cancelButton.ClickByJS();
         Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
     }
 }
コード例 #3
0
ファイル: PupilContactPage.cs プロジェクト: NanaShenley/sel
 public void ClickDelete()
 {
     base.Refresh();
     if (_deleteButton.IsExist())
     {
         _deleteButton.ClickByJS();
         Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
     }
 }
コード例 #4
0
 public MedicalPracticePage Cancel()
 {
     if (_cancelButton.IsExist())
     {
         _cancelButton.ClickByJS();
         Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
     }
     return(new MedicalPracticePage());
 }
コード例 #5
0
 public SuspensionRecordPage ClickDeleteRow(SuspensionExpulsion row)
 {
     if (row != null)
     {
         row.DeleteRow();
         _saveButton.Click();
         Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
     }
     return(new SuspensionRecordPage());
 }
コード例 #6
0
 public ConfirmRequiredDialog ClickSave(bool waitForConfirmDialog = true)
 {
     _saveButton.ClickByJS();
     Wait.WaitForAjaxReady(By.CssSelector(".locking-mask"));
     if (waitForConfirmDialog)
     {
         Wait.WaitForElement(SimsBy.CssSelector("[data-section-id='generic-confirm-dialog']"));
         return(new ConfirmRequiredDialog());
     }
     return(null);
 }
コード例 #7
0
ファイル: ClassLogPage.cs プロジェクト: NanaShenley/sel
        public List <Note> GetNotes()
        {
            List <Note> lstNote = new List <Note>();
            var         _notes  = _timeLineElement.FindElements(SimsBy.CssSelector(".event"));

            foreach (var noteElement in _notes)
            {
                var note = new Note(noteElement);
                lstNote.Add(note);
            }
            return(lstNote);
        }
コード例 #8
0
        public bool IsOverlapMessageDisplayed()
        {
            IList <IWebElement> elements = SeleniumHelper.FindElements(SimsBy.CssSelector(".validation-summary-errors li"));

            foreach (var element in elements)
            {
                if (element.GetText().Trim().Contains("Dates Overlap"))
                {
                    return(true);
                }
            }
            return(false);
        }
コード例 #9
0
        public SuspensionRecordPage ClickDeleteAllRow(List <SuspensionExpulsion> rows)
        {
            if (rows.Count > 0)
            {
                foreach (SuspensionExpulsion row in rows)
                {
                    row.DeleteRow();
                }
                _saveButton.Click();
                Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
            }

            return(new SuspensionRecordPage());
        }
コード例 #10
0
ファイル: ClassLogPage.cs プロジェクト: NanaShenley/sel
        public Note GetNote(string noteName)
        {
            var _notes = _timeLineElement.FindElements(SimsBy.CssSelector(".event"));

            foreach (var note in _notes)
            {
                var name = note.FindElement(SimsBy.AutomationId("log-event-heading")).GetText();
                if (name.Trim().Contains(noteName))
                {
                    return(new Note(note));
                }
            }

            return(null);
        }
コード例 #11
0
ファイル: ClassLogPage.cs プロジェクト: NanaShenley/sel
 public ClassLogPage()
 {
     Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
     Wait.WaitForDocumentReady();
 }
コード例 #12
0
 public SuspensionRecordPage SaveValues()
 {
     _saveButton.Click();
     Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
     return(new SuspensionRecordPage());
 }
コード例 #13
0
 public void ClickSave()
 {
     _saveButton.Click();
     Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
 }
コード例 #14
0
ファイル: PupilContactPage.cs プロジェクト: NanaShenley/sel
 public AddAssociatedPupilsTripletDialog ClickAddPupilLink()
 {
     _addPupilLink.ClickByJS();
     Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
     return(new AddAssociatedPupilsTripletDialog());
 }
コード例 #15
0
ファイル: PupilContactPage.cs プロジェクト: NanaShenley/sel
 public void SelectAssociatedPupilsTab()
 {
     _associatedPupilsLink.ClickByJS();
     Wait.WaitForElementDisplayed(SimsBy.CssSelector("[data-maintenance-container='LearnerContactRelationships']"));
 }
コード例 #16
0
 public AddDoctorAddressDialog ClickAddanAdditionalAddressLink()
 {
     _addaAdditionalAddressesLink.ClickByJS();
     Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
     return(new AddDoctorAddressDialog());
 }
コード例 #17
0
ファイル: ClassLogPage.cs プロジェクト: NanaShenley/sel
 public void Delete()
 {
     _timeLineElement.FindElement(SimsBy.AutomationId("delete_button")).ClickByJS();
     SeleniumHelper.FindElement(SimsBy.AutomationId("Yes_button")).ClickByJS();
     Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
 }
コード例 #18
0
 public string GetSliderState()
 {
     Wait.WaitUntilDisplayed(SimsBy.CssSelector("[data-subslider-control]"));
     return(WebContext.WebDriver.FindElement(By.CssSelector("input[name='SliderState']")).GetValue());
 }
コード例 #19
0
ファイル: ClassLogPage.cs プロジェクト: NanaShenley/sel
 public string ClassName()
 {
     Wait.WaitForControl(SimsBy.CssSelector("[data-automation-id='clog-classname-dropdown-description']"));
     return(_className.GetAttribute("title"));
 }