Esempio n. 1
0
 public void FillRouteWithSameCities()
 {
     route = RouteCreator.WithSameCities();
     DepartureCity.SendKeys(route.DepartureCity);
     ArrivalCity.SendKeys(route.ArrivalCity);
     Body.Click(2);
 }
Esempio n. 2
0
 public MainPage InputRouteDateAndClickSearch(string departureCity, string arrivalCity)
 {
     DepartureCity.SendKeys(departureCity);
     ArrivalCity.SendKeys(arrivalCity);
     SearchButton.Click();
     return(this);
 }
Esempio n. 3
0
 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));
 }
Esempio n. 4
0
 public void FillRoute()
 {
     route = RouteCreator.WithAllProperties();
     DepartureCity.SendKeys(route.DepartureCity);
     ArrivalCity.SendKeys(route.ArrivalCity);
     Body.Click(2);
     CalendarInput.Click();
     GetTomorrow().Click();
 }
Esempio n. 5
0
 public void FillRouteWithoutDate()
 {
     route = RouteCreator.WithoutDate();
     DepartureCity.SendKeys(route.DepartureCity);
     ArrivalCity.SendKeys(route.ArrivalCity);
 }