Exemplo n.º 1
0
 public Page FillFields(FlightData flightData)
 {
     Logger.Log.Info(flightData);
     AirportInputFieldFrom.SendKeys(flightData.getAirportFrom());
     AirportInputFieldTo.SendKeys(flightData.getAirportTo());
     return(this);
 }
Exemplo n.º 2
0
        public void TwoWayReservationToDepartureCity()
        {
            Logger.InitLogger();
            try
            {
                driver = new ChromeDriver();
                driver.Navigate().GoToUrl(WebsiteURL);

                TwoWayReservationToDepartureCityPage twoWayReservationToDepartureCityPage = new TwoWayReservationToDepartureCityPage(driver);
                FlightData testData = FlightDataCreator.FlightDataFromAndTo();
                testData.setAirportTo(testData.getAirportFrom());

                twoWayReservationToDepartureCityPage
                .FillFields(testData)
                .SelectFromDateAsFirstDayNextMonth()
                .SelectDateTo()
                .Submit();
                Assert.IsTrue(twoWayReservationToDepartureCityPage.CheckErrorLabel(), "TwoWayReservationToDepartureCity");
            }
            catch (Exception ex)
            {
                ErrorHandler(ex);
            }
        }