public void IMTR_VerifyTabLabelsDisplayed() { try { test = extent.CreateTest("IMTROngoinDeals_VerifyCardLabels").Info("Test Started"); NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver); IMTRLandingPage imtr = new IMTRLandingPage(BaseTest.driver); navigation.ClickMainMenu(); navigation.ClickTrackRecordOption(); String label1 = imtr.ReturnPerformanceHighlightsTabLabel(); String label2 = imtr.ReturnOngoingDealTabLabel(); String label3 = imtr.ReturnSoldDealTabLabel(); Assert.IsTrue(label1 == "PERFORMANCE HIGHLIGHTS", $"Expected:'PERFORMANCE HIGHLIGHTS' does not match Actual:{label1}"); Assert.IsTrue(label2 == "ONGOING DEALS", $"Expected:'ONGOING DEALS' does not match Actual:{label2}"); Assert.IsTrue(label3 == "SOLD DEALS", $"Expected:'SOLD DEALS' does not match Actual:{label3}"); } catch (Exception e) { test.Log(Status.Fail, "Test Case Failed"); baseTest.TakeScreenshot(); Console.WriteLine(e.StackTrace); } }