public void VerifySponsorReturnNullData() { try { test = extent.CreateTest("VerifySponsorReturnNullData").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.SponsorReturn(); Assert.IsTrue(res == true, "Values are not upaded to hyphen/null "); } catch (Exception e) { test.Log(Status.Fail, "Test Case Failed"); baseTest.TakeScreenshot(); Console.WriteLine(e.StackTrace); } }