public void CheckOrgDetails(string orgName, string orgAddress, string orgPincode, string orgDFENumber) { VerifyIsEquals(orgName, seleniumFunc.GetAttributeValue(chOrgSch.SchoolNameTextbox, "value"), "Check School Name"); VerifyIsEquals(orgAddress, seleniumFunc.GetAttributeValue(chOrgSch.SchoolAddress, "value"), "Check School address"); VerifyIsEquals(orgPincode, seleniumFunc.GetAttributeValue(chOrgSch.SchoolPostcode, "value"), "Check School pincode"); VerifyIsContains(orgDFENumber, seleniumFunc.GetText(chOrgSch.SchoolDFENumber), "Check School DFE number"); }
public void CheckCallBackFormPrepopulatedFields(string NameOfPersonToCall, string TelePhNumToCall, string DateOfFollowUpToCall, string TimeOfFollowUpToCall, string EmailForFollowup) { VerifyIsEquals(comFunc.GetReqFromatDate(DateOfFollowUpToCall, "dd/MM/yyyy"), seleniumFunc.GetAttributeValue(outBoundCustomerContactPage.PrePopulatedDetails[0], "value"), "Check 'Date of follow up call' details on call back form."); VerifyIsEquals(TimeOfFollowUpToCall, seleniumFunc.GetAttributeValue(outBoundCustomerContactPage.PrePopulatedDetails[1], "value"), "Check 'Time of follow up call' details on call back form."); VerifyIsEquals(NameOfPersonToCall, seleniumFunc.GetAttributeValue(outBoundCustomerContactPage.PrePopulatedDetails[2], "value"), "Check 'Name Of Person To Call' details on call back form."); VerifyIsEquals(TelePhNumToCall, seleniumFunc.GetAttributeValue(outBoundCustomerContactPage.PrePopulatedDetails[3], "value"), "Check 'Telephone number to call' details on call back form."); VerifyIsEquals(EmailForFollowup, seleniumFunc.GetAttributeValue(outBoundCustomerContactPage.PrePopulatedDetails[4], "value"), "Check 'Email address' details on call back form."); }
public void CheckContactDetailsFiledsValue(string firstName, string lastName, string JobeTitle, string TelPhone, string emailAddress) { VerifyIsEquals(firstName, seleniumFunc.GetAttributeValue(phonicsZeroOrderPage.ContactFirstName, "value"), "Check Contact FirstName"); VerifyIsEquals(lastName, seleniumFunc.GetAttributeValue(phonicsZeroOrderPage.ContactLastName, "value"), "Check Contact lastName"); VerifyIsEquals(JobeTitle, seleniumFunc.GetAttributeValue(phonicsZeroOrderPage.JobTitle, "value"), "Check Contact JobeTitle"); VerifyIsEquals(TelPhone, seleniumFunc.GetAttributeValue(phonicsZeroOrderPage.TelephoneNumber, "value"), "Check Contact TelPhone"); VerifyIsEquals(emailAddress, seleniumFunc.GetAttributeValue(phonicsZeroOrderPage.EmailAddress, "value"), "Check Contact emailAddress"); }
public void CheckSelectedPupilName(string pupilName, string pupilDetailType) { string actualValue = ""; if (pupilDetailType.Equals(PartialCohort)) { actualValue = seleniumFunc.GetAttributeValue(earlyOpeningAppPage.ReviewFromPartialCohortPupilNameTextbox, "value"); } else { actualValue = seleniumFunc.GetAttributeValue(earlyOpeningAppPage.ReviewFromIndividualPupilNameTextbox, "value"); } VerifyIsEquals(pupilName, actualValue, "Check selected pupil name"); //if (!pupilName.Equals(earlyOpeningAppPage.ReviewFromPupilNameTextbox.GetAttribute("value"))) // errorMsg = "Expected: " + pupilName + " Actual : " + earlyOpeningAppPage.ReviewFromPupilNameTextbox.GetAttribute("value") + " \n"; }
public void VerifyICCForm(string TypeofIssue, string IssueCategory, string site, string Function, string timeofissue, string detailsofissue, string agentnotes) { VerifyIsEquals(TypeofIssue, seleniumFunc.GetAttributeValue(operincidentpage.TypeofIssue, "value"), "Value not matching"); VerifyIsEquals(IssueCategory, seleniumFunc.GetAttributeValue(operincidentpage.IssueCategory, "value"), "Value not matching"); VerifyIsEquals(site, seleniumFunc.GetAttributeValue(operincidentpage.Site, "value"), "Value not matching"); VerifyIsEquals(Function, seleniumFunc.GetAttributeValue(operincidentpage.Function, "value"), "Value not matching"); // VerifyIsEquals(excelUtil.GetDataFromExcel("DateofIssue"), seleniumFunc.GetAttributeValue(operincidentpage.DateofIssueOccurence, "value"), "Value not matching"); // VerifyIsEquals(comFunc.GetReqFromatDate(excelUtil.GetDataFromExcel("DateofIssue"), "dd/MM/yyyy"), seleniumFunc.GetAttributeValue(operincidentpage.DateofIssueOccurence, "value"), "Value not matching"); VerifyIsEquals(timeofissue, seleniumFunc.GetAttributeValue(operincidentpage.TimeofIssueOccurence, "value"), "Value not matching"); VerifyIsEquals(detailsofissue, seleniumFunc.GetAttributeValue(operincidentpage.DetailsofIssue, "value"), "Value not matching"); // VerifyIsEquals(agentnotes, seleniumFunc.GetAttributeValue(operincidentpage.AgentNotes, "value"), "Value not matching"); comFunc.NaviagteToNextPage(); }
public void CheckReviewFromFieldValues(ExcelUtil excelUtil, string formType, bool[] Subjects, bool[] QuestionsAns) { string testCaseName = new StackTrace().GetFrame(1).GetMethod().Name; if (formType.Equals("MoreInfo")) { checkReviewComment(excelUtil.GetDataFromExcel(testCaseName, "Decision1Reason")); } CheckContactDetailsFiledsValue(excelUtil.GetDataFromExcel(testCaseName, "UserFirstName"), excelUtil.GetDataFromExcel(testCaseName, "UserLastName"), excelUtil.GetDataFromExcel(testCaseName, "JobTitle"), excelUtil.GetDataFromExcel(testCaseName, "UserTeleNumber"), excelUtil.GetDataFromExcel(testCaseName, "UserEmailAddress")); CheckSelectedPupilDetailType(excelUtil.GetDataFromExcel(testCaseName, "PupilDetailType"), excelUtil.GetDataFromExcel(testCaseName, "PupilName")); CheckSelectedSubjects(Subjects); checkedSelctedQuestionsAns(QuestionsAns); string actualDate = comFunc.GetReqFromatDate(seleniumFunc.GetAttributeValue(specialConsiderationPage.DateOfIncidentTextbox, "value"), "dd-MMM-yyyy"); VerifyIsEquals(excelUtil.GetDataFromExcel(testCaseName, "DateOfincident"), actualDate, "Check selected Date of incidenet value"); if (formType.Equals("MoreInfo")) { VerifyIsEquals(excelUtil.GetDataFromExcel(testCaseName, "ReasonForSpecialConsideration"), seleniumFunc.GetSelectedTextFromDropdown(specialConsiderationPage.MoreInfoFormReasonForRequest), "Check selected Reaspon for Special Consideration field value"); } else { VerifyIsEquals(excelUtil.GetDataFromExcel(testCaseName, "ReasonForSpecialConsideration"), seleniumFunc.GetSelectedTextFromDropdown(specialConsiderationPage.ReasonForSpecialConsiderDropDwn), "Check selected Reaspon for Special Consideration field value"); } checkSelectedResonForSpecialConsideration(excelUtil.GetDataFromExcel(testCaseName, "ReasonForSpecialConsideration"), excelUtil.GetDataFromExcel(testCaseName, "RelationshipToPupil"), formType); if (formType.Equals("MoreInfo")) { VerifyIsEquals(excelUtil.GetDataFromExcel(testCaseName, "BrieflyExplain"), specialConsiderationPage.MoreInfoFormBrieflyExplainTextArea.GetAttribute("value"), "Check Briefly Explain field value more info form"); } else { VerifyIsEquals(excelUtil.GetDataFromExcel(testCaseName, "BrieflyExplain"), specialConsiderationPage.ReviewFormBrieflyExplainTextArea.GetAttribute("value"), "Check Briefly Explain field value"); } }
public void CheckPrePopulatedFiledsValue(string FullName, string Email) { VerifyIsEquals(FullName, seleniumFunc.GetAttributeValue(ModifiedKS2.YourFullName, "value"), "Check Contact full name"); VerifyIsEquals(Email, seleniumFunc.GetAttributeValue(ModifiedKS2.YourEmail, "value"), "Check Contact email address"); }
public void CheckLastUpdateOrderPersonDetails(string FullName, string Email) { VerifyIsEquals(FullName, seleniumFunc.GetAttributeValue(kSTwoTestOrderPage.LastPersonToUpdateOrder, "value"), "Check Last update order person fullname"); VerifyIsEquals(Email, seleniumFunc.GetAttributeValue(kSTwoTestOrderPage.EmailAddress, "value"), "Check Last update order person emaill"); }
public void CheckContactDetailsFiledsValue(string formName, string firstName, string lastName, string JobeTitle, string TelPhone, string emailAddress) { VerifyIsEquals(firstName, seleniumFunc.GetAttributeValue(timeTableVarPage.ContactFirstName, "value"), "Check Contact FirstName on " + formName + "form"); VerifyIsEquals(lastName, seleniumFunc.GetAttributeValue(timeTableVarPage.ContactLastName, "value"), "Check Contact lastName on " + formName + "form"); VerifyIsEquals(JobeTitle, seleniumFunc.GetAttributeValue(timeTableVarPage.JobTitle, "value"), "Check Contact JobeTitle on " + formName + "form"); VerifyIsEquals(TelPhone, seleniumFunc.GetAttributeValue(timeTableVarPage.TelephoneNumber, "value"), "Check Contact TelPhone on " + formName + "form"); VerifyIsEquals(emailAddress, seleniumFunc.GetAttributeValue(timeTableVarPage.EmailAddress, "value"), "Check Contact emailAddress on " + formName + "form"); }
public string GetSelectedLAName() { return(seleniumFunc.GetAttributeValue(maintainingLA.LADropdown, "value")); }