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 String GetFromSubmisstionConfMsg() { String msg = ""; msg = seleniumFunc.GetText(ks2FromPage.FormSubmitConfMsg); return(msg); }
public bool CheckMandetoryFields(string fieldName, String ErrorMsg) { bool value = false; switch (fieldName) { case Scribe: seleniumFunc.ClickOnElement(notificationPage.ScribeRadioBtn); seleniumFunc.WaitAndClickOnElement(notificationPage.EnglishGrammarPaper1CheckBox); comFunc.SubmitForm(); seleniumFunc.WaitForElementToBeVisible(notificationPage.NameOFScribeTextBoxErrorMsg[0]); //value = notificationPage.NameOFScribeTextBoxErrorMsg.Text.Equals(ErrorMsg) ? true : false; VerifyIsEquals(ErrorMsg, seleniumFunc.GetText(notificationPage.NameOFScribeTextBoxErrorMsg[0]), "Check Name of Scribe field error msg"); VerifyIsEquals(ErrorMsg, seleniumFunc.GetText(notificationPage.HowWasAidUsedErrorMsg[0]), "Check 'How was the aid used?' error msg when Scribe selected"); seleniumFunc.WaitAndClickOnElement(notificationPage.EnglishGrammarPaper1CheckBox); break; case Transcript: seleniumFunc.ClickOnElement(notificationPage.TranscriptRadioBtn); seleniumFunc.WaitAndClickOnElement(notificationPage.EnglishGrammarPaper1CheckBox); comFunc.SubmitForm(); seleniumFunc.WaitForElementToBeVisible(notificationPage.NameOfTranscriberTextBoxErrorMsg[0]); // value = notificationPage.NameOfTranscriberTextBoxErrorMsg.Text.Equals(ErrorMsg) ? true : false; VerifyIsEquals(ErrorMsg, notificationPage.NameOfTranscriberTextBoxErrorMsg[0].Text, "Check Name of Transcript field error msg"); VerifyIsEquals(ErrorMsg, seleniumFunc.GetText(notificationPage.HowWasAidUsedErrorMsg[0]), "Check 'How was the aid used?' error msg when Transcript selected"); seleniumFunc.WaitAndClickOnElement(notificationPage.EnglishGrammarPaper1CheckBox); break; case WordProcess: seleniumFunc.ClickOnElement(notificationPage.WordProcessorTechEleAidRadioBtn); seleniumFunc.WaitAndClickOnElement(notificationPage.EnglishGrammarPaper1CheckBox); comFunc.SubmitForm(); seleniumFunc.WaitForElementToBeVisible(notificationPage.NameOfTypeOfAidTextBoxErrorMsg[0]); // value = notificationPage.NameOfTypeOfAidTextBoxErrorMsg.Text.Equals(ErrorMsg) ? true : false; VerifyIsEquals(ErrorMsg, notificationPage.NameOfTypeOfAidTextBoxErrorMsg[0].Text, "Check Name of WordProcess field error msg"); VerifyIsEquals(ErrorMsg, seleniumFunc.GetText(notificationPage.HowWasAidUsedErrorMsg[0]), "Check 'How was the aid used?' error msg when WordProcess selected"); seleniumFunc.WaitAndClickOnElement(notificationPage.EnglishGrammarPaper1CheckBox); break; case BriefExplanation: seleniumFunc.ScrollElementInView(notificationPage.TextAreaBox); comFunc.SubmitForm(); seleniumFunc.WaitForElementToBeVisible(notificationPage.BriefExplanationTextAreaErrorMsg); // value = notificationPage.BriefExplanationTextAreaErrorMsg.Text.Equals(ErrorMsg) ? true : false; VerifyIsEquals(ErrorMsg, notificationPage.BriefExplanationTextAreaErrorMsg.Text, "Check BriefExplanation field error msg"); break; default: VerifyIsEquals(ErrorMsg, seleniumFunc.GetText(notificationPage.TypeOfNotificationSectionErrorMsg), "Check Type of Notification field error msg"); break; } return(value); }
/// <summary> /// Method to check Madetory fields /// </summary> public void CheckMandetoryFields(string expectedMsg) { comFunc.SubmitForm(); VerifyIsEquals(expectedMsg, seleniumFunc.GetText(becomeMarkerPage.FirstNameErrorMsg), "Check FirstName should Madetory filed."); VerifyIsEquals(expectedMsg, seleniumFunc.GetText(becomeMarkerPage.LastNameErrorMsg), "Check Last name should Madetory filed."); for (int i = 0; i < 3; i++) { int count = i + 1; VerifyIsEquals(expectedMsg, seleniumFunc.GetText(becomeMarkerPage.AddressLineErrorMsg[i]), "Check Address Line " + count + " should Madetory fileds."); } VerifyIsEquals(expectedMsg, seleniumFunc.GetText(becomeMarkerPage.TownErrorMsg), "Check Town/City should Madetory filed."); VerifyIsEquals(expectedMsg, seleniumFunc.GetText(becomeMarkerPage.PostcodeErrorMsg), "Check Postcode should Madetory filed."); VerifyIsEquals(expectedMsg, seleniumFunc.GetText(becomeMarkerPage.RegionErrorMsg), "Check Region drop dwon should Madetory filed."); string[] ContactNumber = { "Home telephone number", "Mobile number", "Work telephone number", "National Insurance number" }; for (int j = 0; j < 3; j++) { VerifyIsEquals(expectedMsg, seleniumFunc.GetText(becomeMarkerPage.AddressLineErrorMsg[j]), "Check " + ContactNumber[j] + " should Madetory filed."); } VerifyIsEquals(expectedMsg, seleniumFunc.GetText(becomeMarkerPage.EmailAddressErrorMsg), "Check Email addressy should Madetory filed."); }
public void CheckValidationMsgForSubjectDateAndTime(string expectedErrorMsg) { seleniumFunc.WaitAndClickOnElement(timeTableVarPage.VerifyBtn); seleniumFunc.WaitForPageToLoad(); VerifyIsEquals(expectedErrorMsg, seleniumFunc.GetText(timeTableVarPage.SubjectDateTimeErrorMsg), "Check follwoing Error msg should displayed.<br>" + expectedErrorMsg); }
public string GetNameofViewScection(int sectionNo) { return(seleniumFunc.GetText(viewKS1TestMaterialPage.SubjectSection[sectionNo])); }
public void CheckMandetoryFields(string errorMsg) { seleniumFunc.ScrollElementInView(phonicsZeroOrderPage.ConfirmZeroOrderCheckBoxErrorMsg); VerifyIsEquals(errorMsg, seleniumFunc.GetText(phonicsZeroOrderPage.ConfirmZeroOrderCheckBoxErrorMsg), "Check Confirm zero orders for phonics mandetory check box"); }
public void CheckMaximumUserCreationLimitMsg(string LimitMsg) { VerifyIsEquals(LimitMsg, seleniumFunc.GetText(cmUserCreationPage.UserCreationLimitMsg), "Check maximum user creation limt validatipon message"); }