public void TC_VerifyLeftMenuOptions() { //Page_Login plogin = new Page_Login(); //plogin.Login(); //Page_HAPrompt haprompt = new Page_HAPrompt(); //haprompt.GoToDashboard(); if (GlobalVariables.isregistered.ToLower().Equals("false")) { Page_DevicesAndApps pdevice = new Page_DevicesAndApps(); pdevice.AcceptTOS(); } Common cmn = new Common(); cmn.OpenHamMenu(); Page_Dashboard dashbrd = new Page_Dashboard(softassertions); //menuitems = CSVReaderDataTable.GetCSVData("LeftmenuContent", pageName, "menuitems", GlobalVariables.clientname); // if ((GlobalVariables.clientname.ToLower().Equals("health trust")) || (GlobalVariables.clientname.ToLower().Equals("meabt"))) //if ((GlobalVariables.clientname.ToLower().Equals("health trust"))) // { // dashbrd.Verify_LeftMenuOptionsOrder(menuitems); // } //else //{ menuitems = CSVReaderDataTable.GetCSVData("LeftmenuContent", pageName, "menuitems", "Common"); //Console.WriteLine("in else section"); dashbrd.Verify_LeftMenuCommonOptions(menuitems); menuitems = CSVReaderDataTable.GetCSVData("LeftmenuContent", pageName, "menuitems", GlobalVariables.clientname.ToLower()); dashbrd.Verify_LeftMenuCommonOptions(menuitems); //} cmn.CloseHamMenu(); is_soft_assert = true; softassertions.AssertAll(); }
public void TC_VerifyLeftMenu() { Common cmn = new Common(); cmn.OpenHamMenu(); Page_Dashboard dashbrd = new Page_Dashboard(softassertions); menuitems = CSVReaderDataTable.GetCSVData("LeftmenuContent", "Dashboard", "menuitems", clientname); dashbrd.Verify_LeftMenuCommonOptions(menuitems); cmn.CloseHamMenu(); is_soft_assert = true; softassertions.AssertAll(); }