예제 #1
0
 public MainPage ChooseDepartureCity(Route route)
 {
     DepartureCityField.Click();
     DepartureCityField.SendKeys(route.DepartureCity);
     CityListClass.Click();
     return(this);
 }
예제 #2
0
 public MainPage ChooseDepartureCity(Route route)
 {
     DepartureCityField.Click();
     DepartureCityField.SendKeys(route.DepartureCity);
     WaitCityList();
     CityListClass.Click();
     Logger.Log.Info("Choose departure city");
     return(this);
 }
예제 #3
0
 public MainPage FillFieldsSearch(Search search)
 {
     DepartureCityField.SendKeys(search.DepartureCity + Keys.Enter);
     driver.Manage().Timeouts().ImplicitWait.Add(TimeSpan.FromSeconds(30));
     ArrivalCityField.SendKeys(search.ArrivalCity + Keys.Enter);
     JourneyType.Click();
     CalendarField.Click();
     DepartureDateField.Click();
     return(this);
 }
예제 #4
0
 public MainPage ChooseIdenticalDepartureAndArrivalCity(Route route)
 {
     DepartureCityField.Click();
     DepartureCityField.SendKeys(route.DepartureCity);
     WaitCityList();
     CityListClass.Click();
     ArrivalCityField.SendKeys(route.DepartureCity);
     WaitCityList();
     CityListClass.Click();
     return(this);
 }
예제 #5
0
 public MainPage ChooseIdenticalDepartureAndArrivalCity(Route route)
 {
     DepartureCityField.Click();
     DepartureCityField.SendKeys(route.DepartureCity);
     WaitCityList();
     CityListClass.Click();
     ArrivalCityField.SendKeys(route.DepartureCity);
     WaitCityList();
     CityListClass.Click();
     Logger.Log.Info("Choose identical departure and arrival city");
     return(this);
 }