public void VerifyCapitalizationWithNullData() { try { test = extent.CreateTest("VerifyPropertyStatusOngoingToSold").Info("Test Started"); NavigationMenuPage navigation = new NavigationMenuPage(BaseTest.driver); IMTRLandingPage imtr = new IMTRLandingPage(BaseTest.driver); navigation.ClickMainMenu(); navigation.ClickTrackRecordOption(); imtr.ClickOngoingDeals(); Thread.Sleep(3000); //imtr.SerachProperty(); imtr.clickOnCard(); Thread.Sleep(5000); bool res = imtr.capitalizationNullData(); Assert.IsTrue(res == true, "Values are not upaded to hyphen "); } catch (Exception e) { test.Log(Status.Fail, "Test Case Failed"); baseTest.TakeScreenshot(); Console.WriteLine(e.StackTrace); } }