public string VerifySymptomCheckerPage() { ClickOnSymptomCheckerInMenu(); SeleniumKeywords.NavigateToIFrame("iframeSymptomChecker"); Common cmn = new Common(); string value = VerifySymptomCheckerPageheading(); SeleniumKeywords.NavigateToDefaultContent(); Console.WriteLine("Value: " + value); return(value); }
private void FillHAModules() { FetchModuleInfo(); for (int i = 0; i < pages.Count; i++) { string moduleid = pages.ElementAt(i)[0]; string expectedtext = pages.ElementAt(i)[1]; Thread.Sleep(5000); SeleniumKeywords.NavigateToDefaultContent(); string actualtext = SeleniumKeywords.GetText(pageName, "haframetitle"); softAssertions.Add("Element : HA Module " + i + " title", expectedtext, actualtext, "contains"); SeleniumKeywords.NavigateToIFrame("assessmentFrame"); Thread.Sleep(3000); switch (i) { case 0: FillYourInfoModule(moduleid); break; //case 1: // VerifySnaphotReport(); // break; //case 2: // FillAboutYouModule(); // break; //case 3: // FillYourVitalModule(); // break; //case 4: // FillDietModule(); // break; //case 5: // FillTobaccoModule(); // break; //case 6: // FillHistoryModule(); // break; //case 7: // FillActivityModule(); // break; //case 8: // FillEmotionalHealthModule(); // break; //case 9: // FillAtWorkModule(); // break; } Thread.Sleep(4000); } }
/// <summary> /// Call by Test case Verify the PHI information is loaded /// </summary> /// <returns></returns> public string VerifyPHRPage() { // ClickOnPHRInMenu(); Common cmn = new Common(); SeleniumKeywords.NavigateToIFrame("PHRFrame"); ClickOnMedicalInformation(); string value = cmn.GetResourcesPageTxt(pageName, "phr_controldiv_MedicalInformation"); Console.WriteLine("Value: " + value); SeleniumKeywords.NavigateToDefaultContent(); return(value); }
private void CompleteHA() { string ha_congratulations_text = SeleniumKeywords.GetText(pageName, "ha_congratulations_text"); //bool textmatch = ha_congratulations_text.Contains("CONGRATULATIONS!"); //string msg = "Element: HA_Congratulation_Text Expected: CONGRATULATIONS! Actual: " + ha_congratulations_text; //result.Add(new string[] { msg, textmatch.ToString() }); softAssertions.Add("Element : ha_congratulations_text", "CONGRATULATIONS!", ha_congratulations_text, "contains"); SeleniumKeywords.NavigateToDefaultContent(); System.Threading.Thread.Sleep(5000); SeleniumKeywords.Click(pageName, "hacompletedclosebtn"); }
private void FillHAModules() { List <string[]> haelementdata = new List <string[]>(); haelementdata = CSVReaderDataTable.GetCSVData(inputfilename, pageName, "hamoduletitle"); for (int i = 0; i < haelementdata.Count; i++) { System.Threading.Thread.Sleep(3000); SeleniumKeywords.NavigateToDefaultContent(); System.Threading.Thread.Sleep(5000); string elementname = haelementdata.ElementAt(i)[2]; string elementlocatorname = haelementdata.ElementAt(i)[3]; string expectedtext = haelementdata.ElementAt(i)[5]; string actualtext = SeleniumKeywords.GetText(pageName, elementlocatorname); //bool textmatch = actualtext.Contains(expectedtext); //string msg = "Element: " + elementname + "Expected: " + expectedtext + "Actual: " + actualtext; //result.Add(new string[] { msg, textmatch.ToString() }); softAssertions.Add("Element : " + elementlocatorname, expectedtext, actualtext, "contains"); SeleniumKeywords.NavigateToIFrame("assessmentFrame"); System.Threading.Thread.Sleep(3000); switch (elementname) { case "YOUR INFO HAFrameTitle": FillYourInfoModule(); break; case "Your Snapshot Report HAFrameTitle": VerifySnaphotReport(); break; case "ABOUT YOU HAFrameTitle": FillAboutYouModule(); break; case "YOUR VITALS HAFrameTitle": FillYourVitalModule(); break; case "DIET HAFrameTitle": FillDietModule(); break; case "TOBACCO HAFrameTitle": FillTobaccoModule(); break; case "HISTORY HAFrameTitle": FillHistoryModule(); break; case "ACTIVITY HAFrameTitle": FillActivityModule(); break; case "EMOTIONAL HEALTH HAFrameTitle": FillEmotionalHealthModule(); break; case "AT WORK HAFrameTitle": FillAtWorkModule(); break; case "REVIEW HAFrameTitle": FillReviewModule(); break; } System.Threading.Thread.Sleep(4000); } }
private void ClickOnWellBeingContentTab() { SeleniumKeywords.NavigateToDefaultContent(); SeleniumKeywords.Click(pageName, "wellbeingcontent_tab"); }
}/// <summary> /// click on famility content tab /// </summary> private void ClickOnFamilyContentTab() { SeleniumKeywords.NavigateToDefaultContent(); SeleniumKeywords.Click(pageName, "familycontent_tab"); }
public void ClickOnSymptomCheckerTab() { SeleniumKeywords.NavigateToDefaultContent(); SeleniumKeywords.Click(pageName, "symptomchecker_tab"); }