예제 #1
0
 public void ConfirmDelete()
 {
     if (_continueDeleteButton.IsExist())
     {
         _continueDeleteButton.ClickByJS();
         Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
     }
 }
예제 #2
0
 public void ClickCancel()
 {
     Wait.WaitUntilDisplayed(SimsBy.AutomationId("well_know_action_Cancel"));
     _cancelButton.ClickByJS();
     //var dialog = new WarningDialog();
     //dialog.DontSave();
     Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
 }
예제 #3
0
 public void CancelDelete()
 {
     if (_cancelButton.IsExist())
     {
         _cancelButton.ClickByJS();
         Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
     }
 }
예제 #4
0
        public void ClickBehavioursTab()
        {
            _behavioursTab.ClickByJS();

            // Wait for tab contents to be displayed.
            Wait.WaitForElementDisplayed(SimsBy.CssSelector("div#Conduct_Summary_Tab_Content"));

            Refresh();
        }
 public ApplicationPage CancelChangeStatus()
 {
     if (_noCancelAndReturn.IsElementExists())
     {
         _noCancelAndReturn.ClickByJS();
         Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
     }
     return(new ApplicationPage());
 }
예제 #6
0
        public TrainingCourseEventDialog ClickOk()
        {
            _okButton.ClickByJS();
            Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));

            //Handle error page not response )
            Wait.WaitLoading();
            return(new TrainingCourseEventDialog());
        }
예제 #7
0
 public void ClickDelete()
 {
     base.Refresh();
     if (_deleteButton.IsExist())
     {
         _deleteButton.ClickByJS();
         Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
     }
 }
예제 #8
0
 public DeleteConfirmationPage ClickDelete()
 {
     if (_deleteButton.IsExist())
     {
         _deleteButton.ClickByJS();
         Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
     }
     return(new DeleteConfirmationPage());
 }
예제 #9
0
        public AllowanceDetailsPage ClickOK()
        {
            _okButton.ClickByJS();
            Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));

            //Wait for loading data into table
            Wait.WaitLoading();
            return(new AllowanceDetailsPage());
        }
예제 #10
0
            public bool IsFormedStaffIsNotExist(string staffName)
            {
                _staffDropdown.Click();
                List <IWebElement> list = new List <IWebElement>(SeleniumHelper.FindElements(SimsBy.CssSelector("#select2-drop ul li")));
                bool result             = list.Count(x => x.GetText().Trim().Equals(staffName)) == 0;

                SeleniumHelper.FindElement(SimsBy.CssSelector("#select2-drop input.select2-input")).SendKeys(Keys.Tab);
                return(result);
            }
예제 #11
0
        public IList <IWebElement> GetCodeList()
        {
            _allCodeButton.ClickByJS();
            Wait.WaitForControl(SimsBy.CssSelector("[data-automation-id='Button_Dropdown'][aria-expanded='true']"));

            IList <IWebElement> Codes = WebContext.WebDriver.FindElements(By.CssSelector("[data-automation-id='Dropdown_Menu']"));

            return(Codes);
        }
예제 #12
0
 public ApplicationPage ConfirmContinueChangeStatus()
 {
     if (_yesContinueSavingButton.IsElementExists())
     {
         _yesContinueSavingButton.ClickByJS();
         Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
     }
     return(new ApplicationPage());
 }
예제 #13
0
        public TrainingCourseDetailsPage ClickOk()
        {
            _okButton.ClickByJS();
            Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));

            //Wait for loading data into table
            SeleniumHelper.Sleep(10);
            return(new TrainingCourseDetailsPage());
        }
예제 #14
0
        public LookupWithProviderPage AddLookupRow(string screenName)
        {
            if (screenName == "ApplicationRejectionReason")
            {
                _addButtonForReasonAdmissionRejected.Click();
            }

            Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
            return(new LookupWithProviderPage());
        }
예제 #15
0
        public StaffNoticeBoardPage ClickCreate()
        {
            if (_createButton.IsExist())
            {
                _createButton.ClickByJS();

                Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
            }
            return(new StaffNoticeBoardPage());
        }
예제 #16
0
        public TeachingGroupPage ClickCreate()
        {
            if (_createButton.IsExist())
            {
                _createButton.ClickByJS();

                Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
            }
            return(new TeachingGroupPage());
        }
예제 #17
0
 public void Delete()
 {
     if (_deleteButton.IsExist())
     {
         _deleteButton.Click();
         Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
         WarningConfirmationDialog deleteDialog = new WarningConfirmationDialog();
         deleteDialog.ConfirmDelete();
     }
 }
예제 #18
0
 public ApplicationPage Cancel()
 {
     if (_cancelButton.IsExist())
     {
         _cancelButton.ClickByJS();
         Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
     }
     return new ApplicationPage();
     Refresh();
 }
예제 #19
0
        public void Save()
        {
            _saveButton.ClickByJS();
            Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));

            if (overlappingdialog() != 0)
            {
                YesButton.ClickByAction();
            }
        }
예제 #20
0
 public void Delete()
 {
     if (_deleteButton.IsExist())
     {
         _deleteButton.ClickByJS();
         Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
         var confirmDialog = new DeleteConfirmationPage();
         confirmDialog.ConfirmDelete();
     }
 }
예제 #21
0
 /// <summary>
 /// Author: Ba.Truong
 /// Description: Click "Delete" button on the record of category need to be deleted
 /// </summary>
 /// <param name="record">The row in allowances table need to be deleted</param>
 public void Delete(POM.Components.Staff.AllowanceDetailsPage.AllowancesRow record)
 {
     if (record != null)
     {
         record.ClickDelete();
         SeleniumHelper.Get(SimsBy.AutomationId("Yes_button")).ClickByJS();
         SeleniumHelper.Get(SimsBy.AutomationId("well_know_action_save")).ClickByJS();
         Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
     }
 }
예제 #22
0
 public void DeleteRecord()
 {
     if (_deleteButton.IsExist())
     {
         _deleteButton.ClickByJS();
         Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
         var confirmDialog = new ConfirmDeleteDialog();
         confirmDialog.ClickContinueDelete();
     }
 }
예제 #23
0
        public SchoolIntakePage ConfirmAdNewAdmission()
        {
            if (_yesUpdateanyassociatedapplicationsButton.IsExist())
            {
                _yesUpdateanyassociatedapplicationsButton.ClickByJS();
                Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
            }
            return(new SchoolIntakePage());

            Refresh();
        }
예제 #24
0
 public bool IsWarningDeleteAppear()
 {
     try
     {
         return(SeleniumHelper.FindElement(SimsBy.CssSelector(".alert-warning.validation-summary-errors")).IsExist());
     }
     catch (Exception)
     {
         return(false);
     }
 }
예제 #25
0
        public SchoolIntakePage ConfirmSaveWithoutAnyAdmissionGroupDefined()
        {
            if (_yesSaveWithoutAnyAdmissionGroupDefined.IsExist())
            {
                _yesSaveWithoutAnyAdmissionGroupDefined.ClickByJS();
                Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
            }
            return(new SchoolIntakePage());

            Refresh();
        }
예제 #26
0
 public SchoolIntakePage CancelDeleteSchoolIntake()
 {
     if (_deleteButton.IsExist())
     {
         _deleteButton.ClickByJS();
         Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
         var confirmDialog = new DeleteConfirmationPage();
         confirmDialog.CancelDelete();
     }
     return(new SchoolIntakePage());
 }
예제 #27
0
        public ApplicationPage CreateRecord()
        {
            if (_creatRecordButton.IsExist())
            {
                _creatRecordButton.ClickByJS();
                Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
            }
            return(new ApplicationPage());

            Refresh();
        }
예제 #28
0
 public void DeleteAddress()
 {
     SeleniumHelper.Sleep(2);
     if (SeleniumHelper.FindElement(By.CssSelector(SeleniumHelper.AutomationId("section_menu_Address"))).GetAttribute("aria-expanded").Trim().Equals("false"))
     {
         SeleniumHelper.FindElement(By.CssSelector(SeleniumHelper.AutomationId("section_menu_Address"))).Click();
     }
     SeleniumHelper.Sleep(2);
     Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
     SeleniumHelper.FindElement(By.CssSelector("[title='Delete address detail']")).Click();
 }
예제 #29
0
        public SchoolIntakePage CancelProcessAddNewAdmission()
        {
            if (_cancelButton.IsExist())
            {
                _cancelButton.ClickByJS();
                Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
            }
            return(new SchoolIntakePage());

            Refresh();
        }
예제 #30
0
        public MedicalPracticeDialog Cancel()
        {
            if (_cancelButton.IsExist())
            {
                _cancelButton.ClickByJS();
                Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
            }
            return(new MedicalPracticeDialog());

            Refresh();
        }