public void SelectPupil() { SeleniumHelper.WaitUntilElementIsDisplayed(_pupilXpath + "[1]"); ElementRetriever.FindElementSafe(WebContext.WebDriver, _firstPupilSelector).Click(); Wait.WaitUntilDisplayed(_firstSelectedPupilSelector); }
public QuickAddBehaviourDialog OpenBehaviourPopup() { By behaviourLinkSelector = SimsBy.Xpath("//*/a[@data-class-log-conduct-event='behaviourlink']"); ElementRetriever.FindElementSafe(WebContext.WebDriver, behaviourLinkSelector).Click(); AutomationSugar.WaitForAjaxCompletion(); // Arbitrary but assume that if the title is displayed then the dialog has loaded? Wait.WaitForElementDisplayed(SimsBy.AutomationId("record_behaviour_popup_header_title")); return(new QuickAddBehaviourDialog()); }
private void NavigateToBulkUpdateApplicantParentalSalutationDetailScreen() { var bulkUpdateNavigation = new AdmissionsBulkUpdateNavigation(); bulkUpdateNavigation.NavgateToPupilBulkUpdate_SubMenu(AdmissionsBulkUpdateElements.BulkUpdate.MenuItems.ApplicantSalutationAddresseeMenuItem, LoginAs); Wait.WaitForAjaxReady(By.CssSelector(".locking-mask")); SeleniumHelper.ToggleCheckbox(AdmissionsBulkUpdateElements.BulkUpdate.Search.MissingSalutationCheckboxName); SeleniumHelper.ToggleCheckbox(AdmissionsBulkUpdateElements.BulkUpdate.Search.MissingAddresseeCheckboxName); SeleniumHelper.ChooseSelectorOption(ParentalSalutationAndAddresseeDetail.YearGroupDropDownList, _admissionYear); SeleniumHelper.ChooseSelectorOption(ParentalSalutationAndAddresseeDetail.SchoolIntakeDropDownList, _schoolIntakeName); SeleniumHelper.ChooseSelectorOption(ParentalSalutationAndAddresseeDetail.AdmissionGroupDropDownList, _admissionGroupName); ElementRetriever.FindElementSafe(WebContext.WebDriver, AdmissionsBulkUpdateElements.BulkUpdate.Search.SearchButton).SendKeys(Keys.Enter); Wait.WaitForAjaxReady(By.CssSelector(".locking-mask")); }