public void Capitalization_VerifyLTCCalculation() { try { test = extent.CreateTest("Capitalization_VerifyLTCCalculation").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(); double actualValue = imtrPropdetails.Capitalization_ReturnActualLTCValue(); double calculatedValue = imtrPropdetails.Capitalization_CalculatedLTCValue(); Assert.IsTrue(actualValue == calculatedValue, $"Value on screen {actualValue} does not match calculated {calculatedValue}"); 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(); } }