public void ConfirmDelete()
 {
     if (_continueDeleteButton.IsExist())
     {
         _continueDeleteButton.ClickByJS();
         Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
     }
 }
 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"));
 }
 public void CancelDelete()
 {
     if (_cancelButton.IsExist())
     {
         _cancelButton.ClickByJS();
         Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
     }
 }
Exemple #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());
 }
Exemple #6
0
        public TrainingCourseEventDialog ClickOk()
        {
            _okButton.ClickByJS();
            Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));

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

            //Wait for loading data into table
            Wait.WaitLoading();
            return(new AllowanceDetailsPage());
        }
Exemple #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);
            }
Exemple #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);
        }
 public ApplicationPage ConfirmContinueChangeStatus()
 {
     if (_yesContinueSavingButton.IsElementExists())
     {
         _yesContinueSavingButton.ClickByJS();
         Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
     }
     return(new ApplicationPage());
 }
        public TrainingCourseDetailsPage ClickOk()
        {
            _okButton.ClickByJS();
            Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));

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

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

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

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

            if (overlappingdialog() != 0)
            {
                YesButton.ClickByAction();
            }
        }
Exemple #20
0
 public void Delete()
 {
     if (_deleteButton.IsExist())
     {
         _deleteButton.ClickByJS();
         Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
         var confirmDialog = new DeleteConfirmationPage();
         confirmDialog.ConfirmDelete();
     }
 }
Exemple #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"));
     }
 }
Exemple #22
0
 public void DeleteRecord()
 {
     if (_deleteButton.IsExist())
     {
         _deleteButton.ClickByJS();
         Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
         var confirmDialog = new ConfirmDeleteDialog();
         confirmDialog.ClickContinueDelete();
     }
 }
Exemple #23
0
        public SchoolIntakePage ConfirmAdNewAdmission()
        {
            if (_yesUpdateanyassociatedapplicationsButton.IsExist())
            {
                _yesUpdateanyassociatedapplicationsButton.ClickByJS();
                Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
            }
            return(new SchoolIntakePage());

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

            Refresh();
        }
Exemple #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());
 }
Exemple #27
0
        public ApplicationPage CreateRecord()
        {
            if (_creatRecordButton.IsExist())
            {
                _creatRecordButton.ClickByJS();
                Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
            }
            return(new ApplicationPage());

            Refresh();
        }
Exemple #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();
 }
Exemple #29
0
        public SchoolIntakePage CancelProcessAddNewAdmission()
        {
            if (_cancelButton.IsExist())
            {
                _cancelButton.ClickByJS();
                Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask"));
            }
            return(new SchoolIntakePage());

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

            Refresh();
        }