/// <summary> /// Method to fill Application form of Special Consideration /// </summary> /// <param name="pupilType"></param> /// <param name="PupilName"></param> /// <param name="subjects"></param> /// <param name="QuestionsAns"></param> /// <param name="ReasonForSC"></param> /// <param name="dateofIncident"></param> /// <param name="RelationToPupil"></param> /// <param name="BrifExpalination"></param> public void fillApplication(string pupilType, string PupilName, bool[] subjects, bool[] QuestionsAns, string ReasonForSC, string dateofIncident, string RelationToPupil, string BrifExpalination) { // Slect Pupli detail Type if (pupilType.Equals(WholeCohort)) { seleniumFunc.WaitAndClickOnElement(specialConsiderationPage.WholeCohortRadioBtn); } else if (pupilType.Equals(IndividualPupile)) { seleniumFunc.WaitAndClickOnElement(specialConsiderationPage.IndividualPupilRadioBtn); // select Date seleniumFunc.SelectValueFromAutoCompliteDropDown(specialConsiderationPage.PupilDropDwn, specialConsiderationPage.PupilDropDwnOptions, PupilName); } try { // Select Subjects for (int i = 0; i < subjects.Length; i++) { if (subjects[i]) { seleniumFunc.WaitAndClickOnElement(specialConsiderationPage.SubjectsCheckBoxes[i]); } } } catch (Exception e) { } // Select Questions ansewer for (int i = 0; i < QuestionsAns.Length; i++) { if (QuestionsAns[i]) { seleniumFunc.WaitAndClickOnElement(specialConsiderationPage.QuestionsYesRadioBtns[i]); } else { seleniumFunc.WaitAndClickOnElement(specialConsiderationPage.QuestionsNoRadioBtns[i]); } } // Selese Reason fro Special Consideration seleniumFunc.SelectValueFromDropDwn(specialConsiderationPage.ReasonForSpecialConsiderDropDwn, ReasonForSC); // Select Date comFunc.SelectDateFromDatePicker(specialConsiderationPage.DateOfIncidentTextbox, dateofIncident); // enter Relation to pupil if (ReasonForSC.Equals("Criteria 1 : Death of family member or close friend of pupil")) { seleniumFunc.SelectValueFromDropDwn(specialConsiderationPage.RelationshipToPupilDropDwn, RelationToPupil); } else { seleniumFunc.WaitAndEnterText(specialConsiderationPage.RelationshipToPupilNATextbox, RelationToPupil); } seleniumFunc.WaitAndEnterText(specialConsiderationPage.BrieflyExplainTextArea, BrifExpalination); // comFunc.NaviagteToNextPage(); }
public void FillForm(string testcaseName, ExcelUtil excel) { seleniumFunc.SelectValueFromDropDwn(becomeMarkerPage.TitleDropdwon, excel.GetDataFromExcel(testcaseName, "Title")); seleniumFunc.WaitAndEnterText(becomeMarkerPage.FirstName, excel.GetDataFromExcel(testcaseName, "FirstName")); seleniumFunc.WaitAndEnterText(becomeMarkerPage.LastName, excel.GetDataFromExcel(testcaseName, "LastName")); string[] address = excel.GetDataFromExcel(testcaseName, "Address").Split(','); for (int i = 0; i < 3; i++) { seleniumFunc.WaitAndEnterText(becomeMarkerPage.AddressLines[i], address[i]); } seleniumFunc.WaitAndEnterText(becomeMarkerPage.TownAndCity, excel.GetDataFromExcel(testcaseName, "City")); seleniumFunc.WaitAndEnterText(becomeMarkerPage.Postcode, excel.GetDataFromExcel(testcaseName, "Postcode")); seleniumFunc.SelectValueFromDropDwn(becomeMarkerPage.RegionDropDwon, excel.GetDataFromExcel(testcaseName, "Region")); for (int j = 0; j < 3; j = j + 2) { seleniumFunc.WaitAndEnterText(becomeMarkerPage.ContactNumber[j], excel.GetDataFromExcel(testcaseName, "ContactNumber")); } seleniumFunc.WaitAndEnterText(becomeMarkerPage.ContactNumber[1], excel.GetDataFromExcel(testcaseName, "MobileNo")); seleniumFunc.WaitAndEnterText(becomeMarkerPage.EmailAddress, excel.GetDataFromExcel(testcaseName, "EmailAddress")); seleniumFunc.WaitAndEnterText(becomeMarkerPage.ContactNumber[3], excel.GetDataFromExcel(testcaseName, "NationalInsuranceNo")); }
public void FillEarlyOpeningApplication(string PupilDetailType, string PupilName, bool subject1, bool subject2, bool subject3, string ReasonForEarlyOpening, string NumberOfSchoolDays, string MoreDetailsEarlyOpening) { SelectPupilDetails(PupilDetailType, PupilName); SelectSubjects(subject1, subject2, subject3); seleniumFunc.SelectValueFromDropDwn(earlyOpeningAppPage.ReasonForEarlyOpeningDropdwn, ReasonForEarlyOpening); seleniumFunc.SelectValueFromDropDwn(earlyOpeningAppPage.NumberOfSchoolDaysDropdwn, NumberOfSchoolDays); seleniumFunc.WaitAndEnterText(earlyOpeningAppPage.MoreDetailsOfEarlyOpeningTextbox, MoreDetailsEarlyOpening); SelectSecurityTearms(3); }
public void FillInboundCustomerContactinfoSec(string contactName, string contactEmail, string contactNumber, string contactdisposition, string AreaforKS1, string contactype, string MarkerdropDown, string contactreason, string typeofissue) { seleniumFunc.WaitAndEnterText(operincidentpage.ContactName, contactName); seleniumFunc.WaitAndEnterText(operincidentpage.Contactemail, contactEmail); seleniumFunc.WaitAndEnterText(operincidentpage.ContactNumber, contactNumber); seleniumFunc.SelectValueFromDropDwn(operincidentpage.ContactDisposition, contactdisposition); seleniumFunc.WaitAndClickOnElement(operincidentpage.ContactArea); seleniumFunc.SelectValueFromDropDwn(operincidentpage.AreaforKS1, AreaforKS1); seleniumFunc.SelectValueFromDropDwn(operincidentpage.ContactType, contactype); seleniumFunc.SelectValueFromDropDwn(operincidentpage.MarkerDropDown, MarkerdropDown); seleniumFunc.WaitAndClickOnElement(operincidentpage.CommunicationType); seleniumFunc.SelectValueFromDropDwn(operincidentpage.ContactReason, contactreason); seleniumFunc.WaitAndClickOnElement(operincidentpage.IssuePriority); comFunc.NaviagteToNextPage(); }
public void FillOutBoundCustomerContactForm(string DialedNumber, string ContactName, string ContactNumber, string OutBoundCallOutCome, bool scheduleCallback, string NameOfPersonToCall, string TelePhNumToCall, string DateOfFollowUpToCall, string TimeOfFollowUpToCall, string EmailForFollowup, string AgentNote) { seleniumFunc.WaitAndEnterText(outBoundCustomerContactPage.DialedNumbers[0], DialedNumber); seleniumFunc.WaitAndEnterText(outBoundCustomerContactPage.ContactName, ContactName); seleniumFunc.WaitAndEnterText(outBoundCustomerContactPage.PreferredNumber, ContactNumber); seleniumFunc.SelectValueFromDropDwn(outBoundCustomerContactPage.OutBondCallOutcomeDropdwon, OutBoundCallOutCome); // Schedule Call back Yes section details if (scheduleCallback) { seleniumFunc.WaitAndClickOnElement(outBoundCustomerContactPage.ScheduleCallbackRadiobtns[0]); seleniumFunc.WaitAndEnterText(outBoundCustomerContactPage.NameOfPersonToCallTextBox, NameOfPersonToCall); seleniumFunc.WaitAndEnterText(outBoundCustomerContactPage.TelePhNumToCallTextBox, TelePhNumToCall); comFunc.SelectDateFromDatePicker(outBoundCustomerContactPage.DateOfFollowUpToCall[0], DateOfFollowUpToCall); seleniumFunc.WaitAndEnterText(outBoundCustomerContactPage.TimeOfFollowUpToCallTextbox, TimeOfFollowUpToCall); } else { seleniumFunc.WaitAndClickOnElement(outBoundCustomerContactPage.ScheduleCallbackRadiobtns[1]); } seleniumFunc.WaitAndEnterText(outBoundCustomerContactPage.EmailForFollowup, EmailForFollowup); seleniumFunc.WaitAndEnterText(outBoundCustomerContactPage.AgentNotesTextArea, AgentNote); }
public void FillKS2HeadTeacherForm(string subjectpaper, string nooftestscript) { seleniumFunc.SwitchToFrame(0); seleniumFunc.WaitAndEnterText(ks2page.NumberOfTestScripts, nooftestscript); seleniumFunc.SelectValueFromDropDwn(ks2page.SubjectPaper, subjectpaper); seleniumFunc.WaitAndClickOnElement(ks2page.ConfirmRadioButton); }
public void FillEventLogOFDownloadForm(string documentName, string formDate, string toDate) { seleniumFunc.SelectValueFromDropDwn(eventLogsOfDownloadPage.DoucmentSDropDwn, documentName); comFunc.SelectDateFromDatePicker(eventLogsOfDownloadPage.FromDate, formDate); comFunc.SelectDateFromDatePicker(eventLogsOfDownloadPage.ToDate, toDate); seleniumFunc.WaitAndClickOnElement(eventLogsOfDownloadPage.SearchBtn); seleniumFunc.WaitForPageToLoad(); }
public void SelectSubjectDateAndTime(string subject1, string Date1, string time1) { if (subject1 != null) { seleniumFunc.SelectValueFromDropDwn(timeTableVarPage.SubjectDropDwns[0], subject1); } if (Date1 != null) { // seleniumFunc.WaitAndClickOnElement(timeTableVarPage.DateScheduledToClearBtn[0]); comFunc.SelectDateFromDatePicker(timeTableVarPage.DateScheduledToInputBoxes[0], Date1); } if (time1 != null) { seleniumFunc.SelectValueFromDropDwn(timeTableVarPage.TimeDropdwns[0], time1); } }
public void AddPersonalDetails(string empcode, string gender, string title, string forename, string surname, string addressLine1, string addressLine2, string addressLine3, string addressLine4, string postcode, string country, string materialstatus, string Day, string month, string year) { seleniumFunc.WaitAndEnterText(markercreate.EmployeeCode, empcode); seleniumFunc.WaitAndEnterText(markercreate.Gender, gender); // seleniumFunc.WaitAndEnterText(markercreate.TitlePersonal, title); // seleniumFunc.WaitAndEnterText(markercreate.ForeName, forename); // seleniumFunc.WaitAndEnterText(markercreate.SurName, surname); seleniumFunc.WaitAndEnterText(markercreate.AdderessLine1, addressLine1); seleniumFunc.WaitAndEnterText(markercreate.AdderessLine2, addressLine2); seleniumFunc.WaitAndEnterText(markercreate.AdderessLine3, addressLine3); seleniumFunc.WaitAndEnterText(markercreate.AdderessLine4, addressLine4); seleniumFunc.WaitAndEnterText(markercreate.PostCode, postcode); seleniumFunc.WaitAndEnterText(markercreate.Country, country); seleniumFunc.WaitAndEnterText(markercreate.MaterialStatus, materialstatus); seleniumFunc.SelectValueFromDropDwn(markercreate.DayDatePicker, Day); seleniumFunc.SelectValueFromDropDwn(markercreate.MonthDatePicker, month); seleniumFunc.SelectValueFromDropDwn(markercreate.YearDatePicker, year); comFunc.NaviagteToNextPage(); }
/// <summary> /// Method to fill LA creartion form /// </summary> /// <param name="userType"></param> /// <param name="email"></param> /// <param name="FirstName"></param> /// <param name="SurName"></param> /// <param name="Jobtitle"></param> /// <param name="TelePhoneNumber"></param> public void FillLACreationForm(string userType, string email, string FirstName, string SurName, string Jobtitle, string TelePhoneNumber) { seleniumFunc.WaitAndEnterText(cmUserCreationPage.LACreationTextboxes[0], FirstName); seleniumFunc.WaitAndEnterText(cmUserCreationPage.LACreationTextboxes[1], SurName); seleniumFunc.WaitAndEnterText(cmUserCreationPage.LACreationTextboxes[2], Jobtitle); seleniumFunc.WaitAndEnterText(cmUserCreationPage.LACreationTextboxes[3], email + Keys.Tab); seleniumFunc.WaitForPageToLoad(); seleniumFunc.WaitAndEnterText(cmUserCreationPage.LACreationTextboxes[4], email); seleniumFunc.WaitAndEnterText(cmUserCreationPage.LACreationTextboxes[5], TelePhoneNumber); seleniumFunc.SelectValueFromDropDwn(cmUserCreationPage.LACreationRole, userType); }
public void SelectCategoriesAndSubject(string catagiory, string subCategory, string subject) { seleniumFunc.WaitForPageToLoad(); seleniumFunc.SelectValueFromDropDwn(uploadTestMaterialPage.SelectCategoryDrpDwn[0], catagiory); seleniumFunc.WaitForPageToLoad(); if (subCategory != null) { seleniumFunc.SelectValueFromDropDwn(uploadTestMaterialPage.SelectSubCategoryDrpDwn[0], subCategory); seleniumFunc.WaitForPageToLoad(); } if (subject != null) { seleniumFunc.WaitForPageToLoad(); seleniumFunc.SelectValueFromDropDwn(uploadTestMaterialPage.SelectSubjectDrpDwn[0], subject); seleniumFunc.WaitForPageToLoad(); } }
public void SelectAppealCategory(string appeal) { seleniumFunc.SelectValueFromDropDwn(lodgeComplaint.SelectAppeal, appeal); }