public void CreateAnAdvancedBooking() { //Arrange var loginPage = new LoginPage(_driver); AdminHomePage adminPage = new AdminHomePage(_driver); AdminBookingPage adminBookingPage = new AdminBookingPage(_driver); AdminAdvancedBookingPage adminAdvancedBookingPage = new AdminAdvancedBookingPage(_driver); AdminAdvancedBookingConfirmationPage advancedBookingConfirmationMessage = new AdminAdvancedBookingConfirmationPage(_driver); //Act-->on admin home page loginPage.Login(); adminPage.ClickOnBooking(); //Assert-->on admin home page var pageTitle = _driver.Title; Console.WriteLine(pageTitle); Assert.IsTrue(pageTitle.Contains("ClubSpark / Admin / Booking")); //Act -->on booking page adminBookingPage.ClickOnBookingSheet(); //Assert-->booking page var bookingPageTitle = _driver.Title; Console.WriteLine(bookingPageTitle); Assert.IsTrue(bookingPageTitle.Contains("Regression Test Venue / Booking / Book by date")); //Act -->on advancebooking page adminAdvancedBookingPage.ClicktoSelectNextDay(); adminAdvancedBookingPage.clickOnATimeSlot(); adminAdvancedBookingPage.ClickOnAdvancedOptions(); //Assert-->advancebooking page var advancebookingPageTitle = _driver.Title; Console.WriteLine(advancebookingPageTitle); Assert.IsTrue(advancebookingPageTitle.Contains("Regression Test Venue / Booking / Advanced booking")); //Act adminAdvancedBookingPage.ClickSumbit(); string advancedBookingMessage = advancedBookingConfirmationMessage.ConfirmationText(); //Assert --> Advanced booking message page Assert.AreEqual(advancedBookingMessage, "Your booking has been confirmed.", "The names match"); }