public void SearchForTicketFromUnspecifiedTheCityOfDeparture() { RouteCreator routeCreator = new RouteCreator(); HomePage homePage = new HomePage(driver); SelectFlightPage selectFlightPage = homePage .AcceptCookie() .EnterDepartureCity(routeCreator.WithEmptyDeparture()) .EnterArrivalCity(routeCreator.WithAllProperties()) .SelectOneWayRoute() .EnterOneWayLeaveDate(routeCreator.WithAllProperties()) .ClickTicketsSearchButton(); Assert.AreEqual(ERROR_TEXT_IF_ENTERED_INCORRECTLY, homePage.GetFromErrorMessageText()); }