public void VerifySearchWorksExpectedOnBudgetScreen() { //try //{ test = extent.CreateTest("VerifySearchWorksExpected").Info("Test Started"); BudgetSummaryPage budget = new BudgetSummaryPage(BaseTest.driver); budget.ClickBudgetSummaryMenu(); Thread.Sleep(3000); //Verify search works as expected int searchbefore = budget.RowsBeforeSearch(); int searchafter = budget.RowsafterSearchForProperty(); Assert.True(searchafter < searchbefore, "Search does not work"); test.Log(Status.Pass, "Test Case Passed"); //} //catch (Exception e) //{ // test.Log(Status.Fail, "Test Case Failed"); // baseTest.TakeScreenshot(); // Console.WriteLine(e.StackTrace); //} }