public void IMTRDetails_VerifySectionTitles() { try { test = extent.CreateTest("IMTRDetails_VerifySectionTitles(").Info("Test Started"); //Pre-requisite: User navigates to contingent property details screen 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); //Verifying section titles String section1 = imtrPropdetails.ReturnGeneralInfoSectionLabel(); Assert.IsTrue(section1 == "GENERAL INFORMATION", $"Expected-'GENERAL INFORMATION' section title does not match actual{section1}"); String section2 = imtrPropdetails.ReturnPurchaseVsExitSectionlabel(); Assert.IsTrue(section2 == "PURCHASE VS. EXIT", $"Expected-'PURCHASE VS. EXIT' section title does not match actual{section2}"); String section3 = imtrPropdetails.ReturnCapitalizationSectionlabel(); Assert.IsTrue(section3 == "CAPITALIZATION", $"Expected-'CAPITALIZATION' section title does not match actual{section3}"); String section4 = imtrPropdetails.ReturnThirdPartyEquitySectionlabel(); Assert.IsTrue(section4 == "3RD - PARTY SPONSOR RETURNS", $"3RD - PARTY SPONSOR RETURNS' section title does not match actual{section4}"); String section5 = imtrPropdetails.ReturnSponsorEquitySectionlabel(); Assert.IsTrue(section5 == "SPONSOR RETURNS - STREAM", $"Expected-'SPONSOR RETURNS - STREAM' section title does not match actual{section5}"); String section6 = imtrPropdetails.ReturnInvestorEquitySectionlabel(); Assert.IsTrue(section6 == "INVESTOR RETURNS", $"Expected-'INVESTOR RETURNS' section title does not match actual{section6}"); String section7 = imtrPropdetails.ReturnTotalEquitySectionlabel(); Assert.IsTrue(section7 == "TOTAL RETURNS", $"Expected-'TOTAL RETURNS' section title does not match actual{section7}"); 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(); } }