public void TC01_09_CreateNewChkTotalLable() { BrowserManagement.test = BrowserManagement.report.StartTest("Total number of records Test"); int prevCount = customersPage.getTotalRecordCount(); //get the total count before creating new record customersPage.createNewRecord(); // create new record dashboardPage.navigateToCustomersPage(); //go to the Customers page int currentCount = customersPage.getTotalRecordCount(); // get the total count again to check the Total number of record updation if (currentCount.Equals(prevCount + 1)) { Assert.True(true); BrowserManagement.test.Log(RelevantCodes.ExtentReports.LogStatus.Pass, "total Count has updated properly"); } else { Assert.Fail("Total count is not updated propertly"); } }