public void KPI_VerifyDebtYeildCalculation() { try { test = extent.CreateTest("KPI_VerifyDebtYeildCalculation").Info("Test Started"); NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver); AssetSummaryPage asset = new AssetSummaryPage(BaseTest.driver); Asset_OperatingSummaryAndMapsPage operating = new Asset_OperatingSummaryAndMapsPage(BaseTest.driver); navigation.ClickMainMenu(); navigation.ClickPropertyMaintenanceOption(); asset.NavigateToPropertyDetails(); operating.ClickOperatingSummarytab(); operating.RadioButton_SelectYTD(); double original = operating.KPI_ActualDebtYieldValue(); double calculated = operating.KPI_Calculate_DebtYieldValue(); Assert.IsTrue(original == calculated, $"Value displayed in KPI:'{original}' does not match:'{calculated}'"); test.Log(Status.Pass, "Test Case passed"); } catch (Exception e) { test.Log(Status.Fail, "Test Case Failed"); baseTest.TakeScreenshot(); Console.WriteLine(e.StackTrace); } }