public void FillRouteWithSameCities() { route = RouteCreator.WithSameCities(); DepartureCity.SendKeys(route.DepartureCity); ArrivalCity.SendKeys(route.ArrivalCity); Body.Click(2); }
public MainPage InputRouteDateAndClickSearch(string departureCity, string arrivalCity) { DepartureCity.SendKeys(departureCity); ArrivalCity.SendKeys(arrivalCity); SearchButton.Click(); return(this); }
public ListTicketsPage InputRouteDateAndClickSearch(Route route) { DepartureCity.SendKeys(route.DepartureCity); ArrivalCity.SendKeys(route.ArrivalCity); DateFiled.Clear(); DateFiled.SendKeys(DateTime.Now.AddDays(1).ToString("dd.MM.yyyy")); SearchButton.Click(); return(new ListTicketsPage(driver)); }
public void FillRoute() { route = RouteCreator.WithAllProperties(); DepartureCity.SendKeys(route.DepartureCity); ArrivalCity.SendKeys(route.ArrivalCity); Body.Click(2); CalendarInput.Click(); GetTomorrow().Click(); }
public void FillRouteWithoutDate() { route = RouteCreator.WithoutDate(); DepartureCity.SendKeys(route.DepartureCity); ArrivalCity.SendKeys(route.ArrivalCity); }