public void IMTR_VerifyFieldslabelInCapitalization() { try { test = extent.CreateTest("IMTR_VerifyFieldslabelInCapitalization").Info("Test Started"); NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver); IMTRLandingPage imtr = new IMTRLandingPage(BaseTest.driver); IMTRPropertyDetailsPage imtrPropdetails = new IMTRPropertyDetailsPage(BaseTest.driver); navigation.ClickMainMenu(); navigation.ClickTrackRecordOption(); imtr.ClickOngoingDeals(); imtr.NavigateToIMTRPropDetail(); Thread.Sleep(3000); String label1 = imtrPropdetails.Capitalization_ReturnTotalCapitalabel(); String label2 = imtrPropdetails.Capitalization_ReturnDebtlabel(); String label3 = imtrPropdetails.Capitalization_ReturnTotalequitylabel(); String label4 = imtrPropdetails.Capitalization_ReturnLTClabel(); String label5 = imtrPropdetails.Capitalization_ReturnInvestorEquitylabel(); String label6 = imtrPropdetails.Capitalization_ReturnStreamEquityExitPricelabel(); String label7 = imtrPropdetails.Capitalization_ReturnOutsideSponsorlabel(); Assert.IsTrue(label1 == "Total Capitalization", $"Expected:'Total Capitalization' does not match actual:{label1}"); Assert.IsTrue(label2 == "Debt", $"Expected:'Debt' does not match actual:{label2}"); Assert.IsTrue(label3 == "Total Equity", $"Expected:'Total Equity' does not match actual:{label3}"); Assert.IsTrue(label4 == "LTC", $"Expected:'LTC' does not match actual:{label4}"); Assert.IsTrue(label5 == "Investor Equity", $"Expected:'Investor Equity' does not match actual:{label5}"); Assert.IsTrue(label6 == "Stream Sponsor Equity", $"Expected:'Stream Sponsor Equity' does not match actual:{label6}"); Assert.IsTrue(label7 == "Outside Sponsor Equity", $"Expected:'Outside Sponsor Equity' does not match actual:{label7}"); 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(); } }