public void IMTR_VerifyFieldslabelInDistributionsSection() { 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.ThirdPartySponsor_ReturnDistributionsReturnsLabel(); String label2 = imtrPropdetails.StreamSponsor_ReturnDistributionsLabel(); String label3 = imtrPropdetails.InvestorSponsor_ReturnDistributionslabel(); String label4 = imtrPropdetails.TotalReturns_ReturnDistributionsLabel(); Assert.IsTrue(label1 == "3rd-Party Sponsor Distributions", $"Expected:'3rd-Party Sponsor Distributions' does not match actual:{label1}"); Assert.IsTrue(label2 == "Stream Sponsor Distributions", $"Expected:'Stream Sponsor Distributions' does not match actual:{label2}"); Assert.IsTrue(label3 == "Investor Distributions", $"Expected:'Investor Distributions' does not match actual:{label3}"); Assert.IsTrue(label4 == "Total Distributions", $"Expected:'Total Distributions' does not match actual:{label4}"); 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(); } }