public void OperatingSummary_VerifyYearlyIsSelected() { try { test = extent.CreateTest("OperatingSummary_VerifyYearlyIsSelected").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(); Thread.Sleep(3000); asset.NavigateToPropertyDetails(); operating.ClickOperatingSummarytab(); operating.RadioButton_SelectYearly(); String label1 = operating.OperatingSummary_ReturnColumnLablel1(); String label2 = operating.OperatingSummary_ReturnColumnLablel2(); String label3 = operating.OperatingSummary_ReturnColumnLablel3(); Assert.IsTrue(label1 == "Yearly Actual" && label2 == "Yearly Budget" && label3 == "Yearly Proforma", $"Operating summary label{label1} does not macth with actual"); test.Log(Status.Pass, "Test Case passed"); } catch (Exception e) { test.Log(Status.Fail, "Test Case Failed"); baseTest.TakeScreenshot(); Console.WriteLine(e.StackTrace); } }