public MainPage ChooseDepartureCity(Route route) { DepartureCityField.Click(); DepartureCityField.SendKeys(route.DepartureCity); CityListClass.Click(); return(this); }
public MainPage ChooseDepartureCity(Route route) { DepartureCityField.Click(); DepartureCityField.SendKeys(route.DepartureCity); WaitCityList(); CityListClass.Click(); Logger.Log.Info("Choose departure city"); return(this); }
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); }
public MainPage ChooseIdenticalDepartureAndArrivalCity(Route route) { DepartureCityField.Click(); DepartureCityField.SendKeys(route.DepartureCity); WaitCityList(); CityListClass.Click(); ArrivalCityField.SendKeys(route.DepartureCity); WaitCityList(); CityListClass.Click(); return(this); }
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); }