public Boolean VerifyContentSectionPresent() { bool status = SeleniumKeywords.IsElementPresent(pageName, "contentsection"); SeleniumKeywords.NavigateToPreviousPage(); return(status); }
private void VerifyMoreResourcesTile(string viewbtn_elementlocatorname, string viewbtn_varinputvalue, string category) { SeleniumKeywords.Click(pageName, viewbtn_elementlocatorname, viewbtn_varinputvalue); Console.WriteLine("Switch to second tab"); SeleniumKeywords.SwitchToTab(2); List <string[]> finwellbeingmoreresources = new List <string[]>(); finwellbeingmoreresources = CSVReaderDataTable.GetCSVData("FinancialWellBeingContent", pageName, category); System.Threading.Thread.Sleep(4000); for (int i = 0; i < finwellbeingmoreresources.Count; i++) { string elementname = finwellbeingmoreresources.ElementAt(i)[2]; string elementlocatorname = finwellbeingmoreresources.ElementAt(i)[3]; string expected_display_status = finwellbeingmoreresources.ElementAt(i)[4]; Boolean actual_display_status = SeleniumKeywords.IsElementPresent(pageName, elementlocatorname); softAssertions.Add("Element : " + elementname, expected_display_status, actual_display_status.ToString(), "equals"); } Console.WriteLine("Close Current Tab"); SeleniumKeywords.CloseCurrentTab(); SeleniumKeywords.SwitchToTab(1); Console.WriteLine("Switch to first tab"); }
/// <summary> /// Method verified the new members journey recommendations /// </summary> /// <param name="journeydata"></param> public void VerifyNewMemberJourney(List <string[]> journeydata) { Console.WriteLine("Total Count: " + journeydata.Count()); int no_of_tiles_in_a_page = 6; int index = 0; for (int i = 0; i < journeydata.Count; i = i + 6) { if ((i % no_of_tiles_in_a_page) == 0) { Console.WriteLine("divisible by 6"); for (int j = 0; j < no_of_tiles_in_a_page; j++) { Console.WriteLine("Here index : " + index); string elementname = journeydata.ElementAt(index)[2]; string elementlocatorname = journeydata.ElementAt(index)[3]; bool elementdisplayedstatus = Convert.ToBoolean(journeydata.ElementAt(index)[4]); string varvalue1 = journeydata.ElementAt(index)[5]; string varvalue2 = journeydata.ElementAt(index)[6]; Console.WriteLine("varvalue1 : " + varvalue1 + ",, varvalue2 : " + varvalue2); bool actualelementpresent; if (elementdisplayedstatus == true) { actualelementpresent = SeleniumKeywords.IsElementPresent(pageName, elementlocatorname, varvalue1, varvalue2); } else { actualelementpresent = SeleniumKeywords.IsElementNotPresent(pageName, elementlocatorname, varvalue1, varvalue2); } softAssertions.Add(index + " Element : " + elementname, elementdisplayedstatus, actualelementpresent, "equals"); index++; //System.Threading.Thread.Sleep(3000); } if ((i + no_of_tiles_in_a_page) < (journeydata.Count - 1)) { Console.WriteLine(journeydata.Count.ToString() + "," + (i + no_of_tiles_in_a_page).ToString()); SeleniumKeywords.Click(pageName, "journeyslidernextbtn"); //System.Threading.Thread.Sleep(3000); } } else { Console.WriteLine("Not divisible by 6"); int no_of_rest_tiles = i % no_of_tiles_in_a_page; for (int j = 0; j < no_of_rest_tiles; j++) { Console.WriteLine("There index : " + index); string elementname = journeydata.ElementAt(index)[2]; string elementlocatorname = journeydata.ElementAt(index)[3]; bool elementdisplayedstatus = Convert.ToBoolean(journeydata.ElementAt(index)[4]); string varvalue1 = journeydata.ElementAt(index)[5]; string varvalue2 = journeydata.ElementAt(index)[6]; bool elementpresent = SeleniumKeywords.IsElementPresent(pageName, elementlocatorname, varvalue1, varvalue2); softAssertions.Add("Element : " + elementname, elementdisplayedstatus, elementpresent, "equals"); index++; } } } }
/// <summary> /// Verify UI elements on the getstarted page /// </summary> public void VerifyPageUI() { Common cmn = new Common(); string clientname = GlobalVariables.clientname.ToLower(); string isSSO = cmn.GetConfig("SSO").ElementAt(0)[1].ToLower(); if (isSSO.Equals("false") || clientname.Equals("health trust") || clientname.Equals("dollar general")) { List <String[]> uielements = CSVReaderDataTable.GetCSVData("RegistrationUIData", pageName, "nonsso_loginpref_uielem"); for (int i = 0; i < uielements.Count(); i++) { string locatorname = uielements.ElementAt(i)[3]; string elementname = uielements.ElementAt(i)[2]; bool actualstatus = SeleniumKeywords.IsElementPresent(pageName, locatorname); softAssertion.Add(elementname, true, actualstatus, "equals"); } } List <String[]> elements = CSVReaderDataTable.GetCSVData("RegistrationUIData", pageName, "loginpref_uielem"); for (int i = 0; i < elements.Count(); i++) { string locatorname = elements.ElementAt(i)[3]; string elementname = elements.ElementAt(i)[2]; bool actualstatus = SeleniumKeywords.IsElementPresent(pageName, locatorname); softAssertion.Add(elementname, true, actualstatus, "equals"); } }
public List <string[]> MyHealthPage() { List <string[]> ExpectedText = new List <string[]>(); ExpectedText = Framework.CSVReaderDataTable.GetCSVData("CommonContent", pageName, "headers"); Console.WriteLine("ExpectedText length : " + ExpectedText.Count); List <string[]> result = new List <string[]>(); for (int i = 0; i < ExpectedText.Count; i++) { string elementname = ExpectedText.ElementAt(i)[2]; string locatorname = ExpectedText.ElementAt(i)[3]; string expectedtext = ExpectedText.ElementAt(i)[4]; string actualtext = SeleniumKeywords.GetText(pageName, locatorname); bool textmatch = SeleniumKeywords.VerifyText(actualtext, expectedtext); string msg = "Element : " + elementname + " , Expected : " + expectedtext + " , Actual : " + actualtext; result.Add(new string[] { msg, textmatch.ToString() }); } List <string[]> tile = new List <string[]>(); tile = Framework.CSVReaderDataTable.GetCSVData("CommonContent", pageName, "tileheader"); for (int i = 0; i < tile.Count; i++) { string elementname = tile.ElementAt(i)[2]; string locatorname = tile.ElementAt(i)[3]; bool status = SeleniumKeywords.IsElementPresent(pageName, locatorname); string msg = "Element : " + elementname + " not displayed"; Console.WriteLine("Element " + msg); result.Add(new string[] { msg, status.ToString() }); } SeleniumKeywords.NavigateToPreviousPage(); return(result); }
/// <summary> /// Method is use to verify sub menu option /// </summary> /// <param name="expected"></param> /// <param name="count"></param> public void Verify_LeftSubMenuOptions(List <String[]> expected, int count) { bool actualdisplaystatus; bool expecteddisplaystatus; string elementname, locatorname; string locatorindex1, locatorindex2; string enabled, clientname; for (int i = 0; i < expected.Count; i++) { clientname = expected.ElementAt(i)[0]; enabled = expected.ElementAt(i)[3]; elementname = expected.ElementAt(i)[4]; locatorname = expected.ElementAt(i)[5]; expecteddisplaystatus = Convert.ToBoolean(expected.ElementAt(i)[6]); locatorindex1 = expected.ElementAt(i)[7]; locatorindex2 = expected.ElementAt(i)[8]; if (clientname.ToLower().Equals("allclients") || FeatureEnabledForCurrentClient(enabled, clientname)) { if (expecteddisplaystatus == true) { actualdisplaystatus = SeleniumKeywords.IsElementPresent(pageName, locatorname, locatorindex1, locatorindex2); } else { actualdisplaystatus = SeleniumKeywords.IsElementNotPresent(pageName, locatorname, locatorindex1, locatorindex2); } softAssertion.Add(elementname, expecteddisplaystatus, actualdisplaystatus, "equals"); } } }
private List <string[]> VerifyFormContent() { System.Threading.Thread.Sleep(4000); List <string[]> ExpectedText = new List <string[]>(); ExpectedText = CSVReaderDataTable.GetCSVData("CommonContent", pageName, "headers"); Console.WriteLine("ExpectedText length : " + ExpectedText.Count); List <string[]> result = new List <string[]>(); for (int i = 0; i < ExpectedText.Count; i++) { string elementname = ExpectedText.ElementAt(i)[2]; string locatorname = ExpectedText.ElementAt(i)[3]; string expectedtext = ExpectedText.ElementAt(i)[4]; string actualtext = SeleniumKeywords.GetText(pageName, locatorname); bool textmatch = SeleniumKeywords.VerifyText(actualtext, expectedtext); string msg = "Element : " + elementname + " , Expected : " + expectedtext + " , Actual : " + actualtext; result.Add(new string[] { msg, textmatch.ToString() }); } List <string[]> options = new List <string[]>(); options = CSVReaderDataTable.GetCSVData("CommonContent", pageName, "labels"); for (int i = 0; i < options.Count; i++) { string elementname = options.ElementAt(i)[2]; string locatorname = options.ElementAt(i)[3]; bool status = SeleniumKeywords.IsElementPresent(pageName, locatorname); string msg = "Element : " + elementname + " not displayed"; result.Add(new string[] { msg, status.ToString() }); } return(result); }
private string getEmailId() { string eid; SeleniumKeywords.IsElementPresent(pageName, "forgotuname_emailidtxt"); eid = SeleniumKeywords.GetText(pageName, "forgotuname_emailid"); return(eid); }
}/// <summary> /// Verify the thisr party challenge popup for Nucore client /// </summary> public void VerifyThirdPartypopup() { Boolean result; result = SeleniumKeywords.IsElementPresent(pageName, "thirdpartychallengespopup"); softAssertion.Add("Third Party Challenges popup", true, result, "equals"); SeleniumKeywords.Click(pageName, "thirdpartychallengespopupok"); }
/// <summary> /// Verify back button functionality /// </summary> private void VerifyUABackFunctionality() { ClickUABackButton(); bool status = SeleniumKeywords.IsElementPresent(pageName, "pageheader"); softAssertion.Add("Get Started Page Header", true, status, "equals"); ClickCancelButton(); }
public Boolean AtDashboard() { bool status; Thread.Sleep(2000); status = SeleniumKeywords.IsElementPresent("Common", "avataricon"); //JourneyTileContactToCoach(); return(status); }
/// <summary> /// Verified recommendations in journey banner /// </summary> /// <param name="journeydata"></param> public void VerifyJourneyBanner(List <string[]> journeydata) { int no_of_tiles_in_a_page = 3; int index = 0; for (int i = 0; i < (journeydata.Count / 2); i = i + 3) { if ((i % no_of_tiles_in_a_page) == 0) { Console.WriteLine("divisible by 3"); for (int j = 0; j < no_of_tiles_in_a_page; j++) { Console.WriteLine("Here index : " + index); string elementname = journeydata.ElementAt(index * 2)[2]; //string elementlocatorname = journeydata.ElementAt(index)[3]; bool elementdisplayedstatus = Convert.ToBoolean(journeydata.ElementAt(index * 2)[4]); string varvalue1 = journeydata.ElementAt(index * 2)[5]; Console.WriteLine("varvalue1 : " + varvalue1); bool actualelementpresent; if (elementdisplayedstatus == true) { actualelementpresent = SeleniumKeywords.IsElementPresent(pageName, "bannertile", varvalue1); } else { actualelementpresent = SeleniumKeywords.IsElementNotPresent(pageName, "bannertile", varvalue1); } softAssertions.Add(index + " Element : " + elementname, elementdisplayedstatus, actualelementpresent, "equals"); index++; //System.Threading.Thread.Sleep(3000); } if ((i + 3) < ((journeydata.Count / 2) - 1)) { SeleniumKeywords.Click(pageName, "bannernextbtn"); //System.Threading.Thread.Sleep(3000); } } else { Console.WriteLine("Not divisible by 3"); int no_of_rest_tiles = i % no_of_tiles_in_a_page; for (int j = 0; j < no_of_rest_tiles; j++) { Console.WriteLine("There index : " + index); string elementname = journeydata.ElementAt(index * 2)[2]; string elementlocatorname = journeydata.ElementAt(index * 2)[3]; bool elementdisplayedstatus = Convert.ToBoolean(journeydata.ElementAt(index * 2)[4]); string varvalue1 = journeydata.ElementAt(index * 2)[5]; bool elementpresent = SeleniumKeywords.IsElementPresent(pageName, "bannertile", varvalue1); softAssertions.Add("Element : " + elementname, elementdisplayedstatus, elementpresent, "equals"); index++; } } } }
/// <summary> /// Verifies Footer links existence /// </summary> public void FooterLinksDisplayed(List <string[]> FooterElements) { for (int i = 0; i < FooterElements.Count; i++) { string elementname = FooterElements.ElementAt(i)[2]; string locatorname = FooterElements.ElementAt(i)[3]; bool elementpresent = SeleniumKeywords.IsElementPresent(pageName, locatorname); softAssertions.Add("Element : " + elementname, true, elementpresent, "equals"); } }
/// <summary> /// Verifies Common Footer links existence for all client /// </summary> public void CommonFooterLinksDisplayed(List <string[]> FooterElements) { for (int i = 0; i < FooterElements.Count; i++) { string elementname = FooterElements.ElementAt(i)[3]; string locatorname = FooterElements.ElementAt(i)[4]; Console.WriteLine("Element Name" + elementname + " Locator " + locatorname); bool elementpresent = SeleniumKeywords.IsElementPresent("Common", locatorname); softAssertion.Add("Element : " + elementname, true, elementpresent, "equals"); } }
/// <summary> /// Verify UI elements on the getstarted page /// </summary> public void VerifyPageUI(List <String[]> elements) { for (int i = 0; i < elements.Count(); i++) { string locatorname = elements.ElementAt(i)[3]; string elementname = elements.ElementAt(i)[2]; bool actualstatus = SeleniumKeywords.IsElementPresent(pageName, locatorname); softAssertion.Add(elementname, true, actualstatus, "equals"); } }
/// <summary> /// call by TC_VerifyCertificate /// </summary> public void verifyCertificatePage() { Thread.Sleep(3000); Boolean result; SeleniumKeywords.Click("Common", "fcertificatelnk"); result = SeleniumKeywords.IsElementPresent(pageName, "certificates_header"); softAssertions.Add("Element : Certificate Page Header", true, result, "equals"); result = SeleniumKeywords.IsElementPresent(pageName, "certificates_header"); softAssertions.Add("Element : Certificate Page Text", true, result, "equals"); }
public void Verify_UpdateProgressSection() { string expectedtxt; expectedtxt = SeleniumKeywords.GetText(pageName, "updateprogresssection"); Console.WriteLine(expectedtxt); softAssertion.Add("Update Trogress Section header", expectedtxt, "UPDATE PROGRESS", "equals"); expectedtxt = SeleniumKeywords.GetText(pageName, "updateprogresssectionsubheading"); softAssertion.Add("Tracker Section header", expectedtxt, "Record Your Activities", "equals"); SeleniumKeywords.Click(pageName, "updateprogresssectiondropdownbtn"); SeleniumKeywords.IsElementPresent(pageName, "updateprogresssectiondropdown_value"); }
public void Verify_TrackersSection() { string expectedtxt; expectedtxt = SeleniumKeywords.GetText(pageName, "trackingsection"); Console.WriteLine(expectedtxt); softAssertion.Add("Tracker Section header", expectedtxt, "TRACKING", "equals"); expectedtxt = SeleniumKeywords.GetText(pageName, "trackingsectionsubheading"); softAssertion.Add("Tracker Section header", expectedtxt, "Track Your Activity", "equals"); SeleniumKeywords.Click(pageName, "trackingsectiondropdownbtn"); SeleniumKeywords.IsElementPresent(pageName, "trackingsectiondropdown_value"); }
public void ConfirmCourse() { bool elementpresent = SeleniumKeywords.IsElementPresent(pageName, "course_confirm_popup_text"); softassertions.Add("Element : course_confirm_popup_text", true, elementpresent, "equals"); elementpresent = SeleniumKeywords.IsElementPresent(pageName, "course_confirm_nothankyou_btn"); softassertions.Add("Element : course_confirm_nothankyou_btn", true, elementpresent, "equals"); SeleniumKeywords.Click(pageName, "course_confirm_yesiamsure_btn"); Thread.Sleep(25000); }
public void Verify_CoachingSection() { string expectedtxt; expectedtxt = SeleniumKeywords.GetText(pageName, "coachingsection"); Console.WriteLine(expectedtxt); softAssertion.Add("Coaching Section header", expectedtxt, "COACHING", "equals"); expectedtxt = SeleniumKeywords.GetText(pageName, "coachingsectionsubheading"); softAssertion.Add("Coaching Section header", expectedtxt, "Ask your Coach", "equals"); expectedtxt = SeleniumKeywords.GetText(pageName, "coachingsectiontilesheading"); softAssertion.Add("Coaching Section header", expectedtxt, "SCROLL THROUGH AVAILABLE GOALS", "equals"); SeleniumKeywords.IsElementPresent(pageName, "coachingsectiontile"); }
public void Verify_CoursesSection() { string expectedtxt; expectedtxt = SeleniumKeywords.GetText(pageName, "coursessection"); Console.WriteLine(expectedtxt); softAssertion.Add("Courses Section header", expectedtxt, "COURSES", "equals"); expectedtxt = SeleniumKeywords.GetText(pageName, "coursessectionsubheading"); softAssertion.Add("Courses Section header", expectedtxt, "Get Started Today", "equals"); expectedtxt = SeleniumKeywords.GetText(pageName, "coursessectiontilesheading"); softAssertion.Add("Courses Section header", expectedtxt, "SCROLL THROUGH AVAILABLE COURSES", "equals"); SeleniumKeywords.IsElementPresent(pageName, "coursessectiontile"); }
/// <summary> /// Verify the health trail challenges page loaded for HCSC groups /// </summary> /// <returns></returns> public Boolean verifyHealthTrait() { Console.WriteLine("Switch to second tab"); SeleniumKeywords.SwitchToTab(2); Boolean result; result = SeleniumKeywords.IsElementPresent(pageName, "healthTrailpageheader"); Console.WriteLine("Close Current Tab"); SeleniumKeywords.CloseCurrentTab(); SeleniumKeywords.SwitchToTab(1); Console.WriteLine("Switch to first tab"); return(result); }
/// <summary> /// Method verified the new members journey recommendations /// </summary> /// <param name="journeydata"></param> public void VerifyNewMemberJourney(List <string[]> journeydata) { for (int i = 0; i < (journeydata.Count); i++) { string elementname = journeydata.ElementAt(i)[2]; string elementlocatorname = journeydata.ElementAt(i)[3]; bool elementdisplayedstatus = Convert.ToBoolean(journeydata.ElementAt(i)[4]); string varvalue1 = journeydata.ElementAt(i)[5]; string varvalue2 = journeydata.ElementAt(i)[6]; Console.WriteLine("varvalue1 : " + varvalue1 + ", varvalue2 : " + varvalue2); bool elementpresent = SeleniumKeywords.IsElementPresent(pageName, elementlocatorname, varvalue1, varvalue2); softAssertions.Add(i + " Element : " + elementname, elementdisplayedstatus, elementpresent, "equals"); } }
/// <summary> /// This method is used to verify the Text Area and its placeholder value /// </summary> /// <returns></returns> public void VerifyTxtAreaElement() { string elementname = ""; string elementlocatorname = ""; //Read from CSV value List <String[]> uielementattribute = CSVReaderDataTable.GetCSVData("AttributesContent", pageName, "elementuiattr"); elementname = uielementattribute.ElementAt(0)[2]; elementlocatorname = uielementattribute.ElementAt(0)[3]; Console.WriteLine("Element name" + elementname); //Verify the visibility of text area bool elementexistence = SeleniumKeywords.IsElementPresent(pageName, elementlocatorname); softAssertion.Add("Element : " + elementname, true, elementexistence, "equals"); }
//Grey Tile Actions /// <summary> /// Verifies whether Grey Tiles section is displayed or not /// </summary> /// <returns> Grey Tiles existance status: true/false</returns> public Boolean GreyTileExistence() { bool gtstatus; if (GlobalVariables.clientname == "Dollar General") { gtstatus = SeleniumKeywords.IsElementPresent(pageName, "greytilesectiondg"); } else { gtstatus = SeleniumKeywords.IsElementPresent(pageName, "greytilesection"); } return(gtstatus); }
private void BackButtonFunctionality() { bool status; ClickBackButton(); if (GlobalVariables.environment.ToLower() == "sa" || GlobalVariables.environment.ToLower() == "staging" || GlobalVariables.environment.ToLower() == "prod" || GlobalVariables.environment.ToLower() == "production") { status = SeleniumKeywords.IsElementPresent("Page_Login", "loginbtn"); } else { status = SeleniumKeywords.IsElementPresent("Page_Login", "oldloginbtn"); } softAssertion.Add("Login Button", true, status, "equals"); }
/// <summary> /// This method validates tracker data in tracker history /// </summary> /// <param name="historydata"></param> /// <returns></returns> public void ValidateHistoryData(List <string[]> historydata, string pname) { //ClickViewHistory(); string pagename = pageName; for (int i = 0; i < historydata.Count; i++) { string elementname = historydata.ElementAt(i)[2]; string elementlocatorname = historydata.ElementAt(i)[3]; string variablevalue = historydata.ElementAt(i)[4]; string[] varinputvalue = variablevalue.Split('|'); Thread.Sleep(2000); bool historydatapresent = SeleniumKeywords.IsElementPresent(pname, elementlocatorname, varinputvalue); softAssertions.Add("Element : " + elementname, true, historydatapresent, "equals"); } }
// Header Actions /// <summary> /// Verified Header elements are displayed /// </summary> /// <returns></returns> public void VerifyHeader(List <string[]> FooterElements) { for (int i = 0; i < FooterElements.Count; i++) { if ((FooterElements.ElementAt(2)[3] == "coachicon") && (VerifyCoachingEnable() == false)) { Console.WriteLine("Coaching is not available for this client"); } else { string elementname = FooterElements.ElementAt(i)[2]; string locatorname = FooterElements.ElementAt(i)[3]; bool elementexistence = SeleniumKeywords.IsElementPresent(pageName, locatorname); softAssertions.Add("Element : " + elementname, true, elementexistence, "equals"); } } }
private void ValidateIncentiveHistoryActivities() { List<string[]> historyuidata = new List<string[]>(); historyuidata = CSVReaderDataTable.GetCSVData("IncentiveHistoryActivities", pageName, "incentivehistoryitems",GlobalVariables.clientname.ToLower()); for (int i = 0; i < historyuidata.Count; i++) { string elementname = historyuidata.ElementAt(i)[3]; string elementlocatorname = historyuidata.ElementAt(i)[4]; bool expelementpresence = Convert.ToBoolean(historyuidata.ElementAt(i)[5]); string varinputvalue1 = historyuidata.ElementAt(i)[6]; string varinputvalue2 = historyuidata.ElementAt(i)[7]; string varinputvalue3 = historyuidata.ElementAt(i)[8]; string varinputvalue4 = historyuidata.ElementAt(i)[9]; bool actualelementpresence = SeleniumKeywords.IsElementPresent(pageName, elementlocatorname,varinputvalue1,varinputvalue2,varinputvalue3,varinputvalue4); softAssertions.Add("Element : " + elementlocatorname, expelementpresence, actualelementpresence, "equals"); } }
public void Verify_LeftMenuCommonOptions(List <String[]> expected) { bool actualdisplaystatus; bool expecteddisplaystatus; string elementname, locatorname; string locatorindex1; //Console.WriteLine("Verify_LeftMenuCommonOptions moducle called"); for (int i = 0; i < expected.Count; i++) { elementname = expected.ElementAt(i)[3]; locatorname = expected.ElementAt(i)[4]; expecteddisplaystatus = Convert.ToBoolean(expected.ElementAt(i)[5]); locatorindex1 = expected.ElementAt(i)[6]; // locatorindex2 = expected.ElementAt(i)[7]; Console.WriteLine(elementname + " " + locatorname + " " + locatorindex1); if (expecteddisplaystatus == true) { //if ((locatorindex1.ToLower().Equals("financial well-being")) && ((GlobalVariables.clientname.ToLower().Equals("spouses")) || (GlobalVariables.clientname.ToLower().Equals("onlife health"))|| (GlobalVariables.clientname.ToLower().Equals("dollar general")) || (GlobalVariables.clientname.ToLower().Equals("group 44")))) //{ // actualdisplaystatus = true; //} //else if((locatorindex1.ToLower().Equals("devices and apps")) && (GlobalVariables.clientname.ToLower().Equals("dollar general"))) //{ // actualdisplaystatus = true; //} //else //{ actualdisplaystatus = SeleniumKeywords.IsElementPresent(pageName, locatorname, locatorindex1); //} } else { actualdisplaystatus = SeleniumKeywords.IsElementNotPresent(pageName, locatorname, locatorindex1); } //Console.WriteLine("The Actual menu option title: " + actualdisplaystatus + " Expected :" + expected.ElementAt(i)[4]); softAssertion.Add(elementname, expecteddisplaystatus, actualdisplaystatus, "equals"); //Console.WriteLine("Pro get count " + count); //System.Threading.Thread.Sleep(1000); } }