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")); } }
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()); }
public TrainingCourseEventDialog ClickOk() { _okButton.ClickByJS(); Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask")); //Handle error page not response ) Wait.WaitLoading(); return(new TrainingCourseEventDialog()); }
public void ClickDelete() { base.Refresh(); if (_deleteButton.IsExist()) { _deleteButton.ClickByJS(); Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask")); } }
public DeleteConfirmationPage ClickDelete() { if (_deleteButton.IsExist()) { _deleteButton.ClickByJS(); Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask")); } return(new DeleteConfirmationPage()); }
public AllowanceDetailsPage ClickOK() { _okButton.ClickByJS(); Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask")); //Wait for loading data into table Wait.WaitLoading(); return(new AllowanceDetailsPage()); }
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); }
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()); }
public LookupWithProviderPage AddLookupRow(string screenName) { if (screenName == "ApplicationRejectionReason") { _addButtonForReasonAdmissionRejected.Click(); } Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask")); return(new LookupWithProviderPage()); }
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(); } }
public ApplicationPage Cancel() { if (_cancelButton.IsExist()) { _cancelButton.ClickByJS(); Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask")); } return new ApplicationPage(); Refresh(); }
public void Save() { _saveButton.ClickByJS(); Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask")); if (overlappingdialog() != 0) { YesButton.ClickByAction(); } }
public void Delete() { if (_deleteButton.IsExist()) { _deleteButton.ClickByJS(); Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask")); var confirmDialog = new DeleteConfirmationPage(); confirmDialog.ConfirmDelete(); } }
/// <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")); } }
public void DeleteRecord() { if (_deleteButton.IsExist()) { _deleteButton.ClickByJS(); Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask")); var confirmDialog = new ConfirmDeleteDialog(); confirmDialog.ClickContinueDelete(); } }
public SchoolIntakePage ConfirmAdNewAdmission() { if (_yesUpdateanyassociatedapplicationsButton.IsExist()) { _yesUpdateanyassociatedapplicationsButton.ClickByJS(); Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask")); } return(new SchoolIntakePage()); Refresh(); }
public bool IsWarningDeleteAppear() { try { return(SeleniumHelper.FindElement(SimsBy.CssSelector(".alert-warning.validation-summary-errors")).IsExist()); } catch (Exception) { return(false); } }
public SchoolIntakePage ConfirmSaveWithoutAnyAdmissionGroupDefined() { if (_yesSaveWithoutAnyAdmissionGroupDefined.IsExist()) { _yesSaveWithoutAnyAdmissionGroupDefined.ClickByJS(); Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask")); } return(new SchoolIntakePage()); Refresh(); }
public SchoolIntakePage CancelDeleteSchoolIntake() { if (_deleteButton.IsExist()) { _deleteButton.ClickByJS(); Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask")); var confirmDialog = new DeleteConfirmationPage(); confirmDialog.CancelDelete(); } return(new SchoolIntakePage()); }
public ApplicationPage CreateRecord() { if (_creatRecordButton.IsExist()) { _creatRecordButton.ClickByJS(); Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask")); } return(new ApplicationPage()); Refresh(); }
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(); }
public SchoolIntakePage CancelProcessAddNewAdmission() { if (_cancelButton.IsExist()) { _cancelButton.ClickByJS(); Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask")); } return(new SchoolIntakePage()); Refresh(); }
public MedicalPracticeDialog Cancel() { if (_cancelButton.IsExist()) { _cancelButton.ClickByJS(); Wait.WaitForAjaxReady(SimsBy.CssSelector(".locking-mask")); } return(new MedicalPracticeDialog()); Refresh(); }