public void Excercise1(string url, string loginName, string password) { driver.Navigate().GoToUrl(url); var homePage = new HomePage(driver); LogInPage loginPage = homePage.ClickLogin(); AccountPage accountPage = loginPage.LogIn(loginName, password); Assert.AreEqual(DateTime.Now.ToString("dd MMMM yyyy"), accountPage.GetDateText(), "Date is wrong"); homePage = accountPage.ClickHome(); var price = homePage.GetTheCheapestFeaturedHotelsPrice(); Assert.Fail($"The cheapest Features Hotel is : '{homePage.GetTheCheapestFeaturedHotelsName(price)}' with Price: ${price}"); }