public void TC01_08_CreateNewChkCustomersList() { //checking whether the new record is displayed in the last page //create new record before checking customersPage.createNewRecord(); //------ BrowserManagement.test = BrowserManagement.report.StartTest("Test for presence of the created new record in Customers table"); dashboardPage.navigateToCustomersPage(); // go to the customers page customersPage.goToLastPage(); //go to the last page and check the last record if (customersPage.checkLastRowName()) { Assert.IsTrue(true); BrowserManagement.test.Log(RelevantCodes.ExtentReports.LogStatus.Pass, "Record present at the last position of the customer table"); } else { Assert.Fail(); BrowserManagement.test.Log(RelevantCodes.ExtentReports.LogStatus.Fail, "Record not saved at the last position of the customer table"); } }