public void CheckAdvicesAndMessage(bool[] q, ExcelUtil excelUtil) { string testCaseName = "SetUp"; string Advice1 = excelUtil.GetDataFromExcel(testCaseName, "Advice1"); string Advice2 = excelUtil.GetDataFromExcel(testCaseName, "Advice2"); string Advice3 = excelUtil.GetDataFromExcel(testCaseName, "Advice3"); string MessageA = excelUtil.GetDataFromExcel(testCaseName, "MessageA"); string MessageB = excelUtil.GetDataFromExcel(testCaseName, "MessageB"); string MessageC = excelUtil.GetDataFromExcel(testCaseName, "MessageC"); string MessageD = excelUtil.GetDataFromExcel(testCaseName, "MessageD"); string MessageE = excelUtil.GetDataFromExcel(testCaseName, "MessageE"); string MessageF = excelUtil.GetDataFromExcel(testCaseName, "MessageF"); string MessageG = excelUtil.GetDataFromExcel(testCaseName, "MessageG"); string MessageH = excelUtil.GetDataFromExcel(testCaseName, "MessageH"); string MessageI = excelUtil.GetDataFromExcel(testCaseName, "MessageI"); string MessageJ = excelUtil.GetDataFromExcel(testCaseName, "MessageJ"); string MessageK = excelUtil.GetDataFromExcel(testCaseName, "MessageK"); string MessageL = excelUtil.GetDataFromExcel(testCaseName, "MessageL"); string MessageM = excelUtil.GetDataFromExcel(testCaseName, "MessageM"); string MessageN = excelUtil.GetDataFromExcel(testCaseName, "MessageN"); string MessageO = excelUtil.GetDataFromExcel(testCaseName, "MessageO"); string MessageP = excelUtil.GetDataFromExcel(testCaseName, "MessageP"); comFunc.GetReferanceCode(); seleniumFunc.ScrollPageDown(500); // Verify Advice 1,2 & 3 if (q[1]) { // Verify Message VerifyIsContains(Advice1.Split('\n'), GetTextFromHTML("<hr><b>Advice: </b>", null), "Check Advice 1 should displayed"); } if (q[2]) { // Verify Message VerifyIsContains(Advice2.Split('\n'), GetTextFromHTML("<hr><b>Advice: </b>", null), "Check Advice 2 should displayed"); } if (!q[3]) { // Verify Message VerifyIsContains(Advice3.Split('\n'), GetTextFromHTML("<hr><b>Advice: </b>", null), "Check Advice 3 should displayed"); } // Verify messages if (!q[0] && !q[4] && q[5] && !q[6]) { // Verify Message VerifyIsContains(MessageA.Split('\n'), GetTextFromHTML("<b>Outcome: </b>", "<hr><b>Advice: </b>"), "Check Message A should displayed"); } if (q[0] && q[4] && q[5] && !q[6]) { // Verify Message VerifyIsContains(MessageB.Split('\n'), GetTextFromHTML("<b>Outcome: </b>", "<hr><b>Advice: </b>"), "Check Message B should displayed"); } if (q[0] && !q[4] && !q[5] && !q[6]) { // Verify Message VerifyIsContains(MessageC.Split('\n'), GetTextFromHTML("<b>Outcome: </b>", "<hr><b>Advice: </b>"), "Check Message C should displayed"); } if (q[0] && !q[4] && q[5] && q[6]) { // Verify Message br><mark id VerifyIsContains(MessageD.Split('\n'), GetTextFromHTML("<b>Outcome: </b>", "<hr><b>Advice: </b>"), "Check Message D should displayed"); } if (!q[0] && q[4] && q[5] && !q[6]) { // Verify Message br><mark id VerifyIsContains(MessageE.Split('\n'), GetTextFromHTML("<b>Outcome: </b>", "<hr><b>Advice: </b>"), "Check Message E should displayed"); } if (!q[0] && !q[4] && !q[5] && !q[6]) { // Verify Message VerifyIsContains(MessageF.Split('\n'), GetTextFromHTML("<b>Outcome: </b>", "<hr><b>Advice: </b>"), "Check Message F should displayed"); } if (!q[0] && !q[4] && q[5] && q[6]) { // Verify Message VerifyIsContains(MessageG.Split('\n'), GetTextFromHTML("<b>Outcome: </b>", "<hr><b>Advice: </b>"), "Check Message G should displayed"); } if (q[0] && q[4] && !q[5] && !q[6]) { // Verify Message VerifyIsContains(MessageH.Split('\n'), GetTextFromHTML("<b>Outcome: </b>", "<hr><b>Advice: </b>"), "Check Message H should displayed"); } if (q[0] && q[4] && q[5] && q[6]) { // Verify Message VerifyIsContains(MessageI.Split('\n'), GetTextFromHTML("<b>Outcome: </b>", "<hr><b>Advice: </b>"), "Check Message I should displayed"); } if (q[0] && !q[4] && !q[5] && q[6]) { // Verify Message VerifyIsContains(MessageJ.Split('\n'), GetTextFromHTML("<b>Outcome: </b>", "<hr><b>Advice: </b>"), "Check Message J should displayed"); } if (!q[0] && q[4] && !q[5] && !q[6]) { // Verify Message VerifyIsContains(MessageK.Split('\n'), GetTextFromHTML("<b>Outcome: </b>", "<hr><b>Advice: </b>"), "Check Message K should displayed"); } if (!q[0] && q[4] && q[5] && q[6]) { // Verify Message VerifyIsContains(MessageL.Split('\n'), GetTextFromHTML("<b>Outcome: </b>", "<hr><b>Advice: </b>"), "Check Message L should displayed"); } if (!q[0] && !q[4] && !q[5] && q[6]) { // Verify Message VerifyIsContains(MessageM.Split('\n'), GetTextFromHTML("<b>Outcome: </b>", "<hr><b>Advice: </b>"), "Check Message M should displayed"); } if (q[0] && q[4] && !q[5] && q[6]) { // Verify Message VerifyIsContains(MessageN.Split('\n'), GetTextFromHTML("<b>Outcome: </b>", "<hr><b>Advice: </b>"), "Check Message N should displayed"); } if (!q[0] && q[4] && !q[5] && q[6]) { // Verify Message VerifyIsContains(MessageO.Split('\n'), GetTextFromHTML("<b>Outcome: </b>", "<hr><b>Advice: </b>"), "Check Message O should displayed"); } if (q[0] && !q[4] && q[5] && !q[6]) { // Verify Message VerifyIsContains(MessageP.Split('\n'), GetTextFromHTML("<b>Outcome: </b>", "<hr><b>Advice: </b>"), "Check Message P should displayed"); } }