public void Verify3rdPartySponsorReturnNullData() { try { test = extent.CreateTest("Verify3rdPartySponsorReturnNullData").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.ThirdpartySponsorReturn(); 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); } }