public void IMTRSoldDeals_VerifyListViewColumnLabels()
 {
     try
     {
         test = extent.CreateTest("IMTRSoldDeals_VerifyListViewColumnLabels").Info("Test Started");
         NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver);
         IMTRLandingPage    imtr       = new IMTRLandingPage(BaseTest.driver);
         navigation.ClickMainMenu();
         navigation.ClickTrackRecordOption();
         imtr.ClickSoldDeals();
         imtr.ChangeToListView();
         String label1 = imtr.ReturnListViewColumnLabel1();
         String label2 = imtr.ReturnListViewColumnLabel2();
         String label3 = imtr.ReturnListViewColumnLabel3();
         String label4 = imtr.ReturnListViewColumnLabel4();
         String label5 = imtr.ReturnListViewColumnLabel5();
         String label6 = imtr.ReturnListViewColumnLabel6();
         String label7 = imtr.ReturnListViewColumnLabel7();
         Assert.IsTrue(label1 == "Property Name", $"Expected:'Property Name' does not match Actual:{label1}");
         Assert.IsTrue(label2 == "Market", $"Expected:'Market' does not match Actual:{label2}");
         Assert.IsTrue(label3 == "Co-Investor", $"Expected:'C-Investor' does not match Actual:{label3}");
         Assert.IsTrue(label4 == "Property Type", $"Expected:'Property Type' does not match Actual:{label4}");
         Assert.IsTrue(label5 == "Disposition Date", $"Expected:'Disposition Date' does not match Actual:{label5}");
         Assert.IsTrue(label6 == "RSF", $"Expected:'RSF' does not match Actual:{label6}");
         Assert.IsTrue(label7 == "Sold Price", $"Expected:'Sold Price' does not match Actual:{label7}");
     }
     catch (Exception e)
     {
         test.Log(Status.Fail, "Test Case Failed");
         baseTest.TakeScreenshot();
         Console.WriteLine(e.StackTrace);
     }
 }
        public void SwitchingBetweenViewsOnOngoingandSoldDeals()
        {
            try
            {
                test = extent.CreateTest("SwitchingBetweenViewsOnOngoingandSoldDeals").Info("Test Started");
                IMTRLandingPage    imtr       = new IMTRLandingPage(BaseTest.driver);
                NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver);
                navigation.ClickMainMenu();
                navigation.ClickTrackRecordOption();

                //Verify change view works for ongoing deals
                imtr.ClickOngoingDeals();
                Thread.Sleep(2000);
                Boolean lview = imtr.ChangeToListView();
                Assert.IsTrue(lview == true, "List View is not displayed");

                //Verify change view works for sold deals
                Thread.Sleep(3000);
                imtr.ClickSoldDeals();
                Boolean cview = imtr.ChangeToCardView();
                Assert.IsTrue(cview == true, "card View is not displayed");
                test.Log(Status.Pass, "Test Case Passed");
            }
            catch (Exception e)
            {
                test.Log(Status.Fail, "Test Case Failed");
                baseTest.TakeScreenshot();
                Console.WriteLine(e.StackTrace);
                driver.Quit();
            }
        }