public void KPI_VerifyYOCCalculation() { try { test = extent.CreateTest("KPI_VerifyYOCCalculation").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(); double original = operating.KPI_ActualYOCValue(); double calculated = operating.KPI_Calculate_YOCValue(); 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); } }