Ejemplo n.º 1
0
        public static void GoToHoldLuggagePage(IWebDriver driver)
        {
            var cookiePolicyDraw = new CookiePolicyDraw(driver);

            cookiePolicyDraw.ClickAcceptButton();

            var searchPodPage = new SearchPodPage(driver);

            searchPodPage.SelectOneWayCheckBox();
            searchPodPage.EnterOriginAirportTextField();
            searchPodPage.EnterDestinationAirportTextField();
            searchPodPage.ClickDepartingCalendar();

            var calendarDraw = new CalendarDraw(driver);

            calendarDraw.SelectCalendarDate(DateTime.UtcNow.AddDays(3));
            searchPodPage.ClickAddAdultButton();
            searchPodPage.ClickShowFlightsButton();

            var pickFlightsPage = new PickFlightsPage(driver);

            pickFlightsPage.SelectAFlight();

            var helpingHandPage = new HelpingHandPage(driver);

            helpingHandPage.ClickContinueButton();
            helpingHandPage.ClickSkipButton();

            var holdLuggagePage = new HoldLuggagePage(driver);
        }
Ejemplo n.º 2
0
        public static PickFlightsPage GoToPickFlightsPage(IWebDriver driver)
        {
            var cookiePolicyDraw = new CookiePolicyDraw(driver);

            cookiePolicyDraw.ClickAcceptButton();

            var searchPodPage = new SearchPodPage(driver);

            searchPodPage.SelectOneWayCheckBox();
            searchPodPage.EnterOriginAirportTextField();
            searchPodPage.EnterDestinationAirportTextField();
            searchPodPage.ClickDepartingCalendar();

            return(new PickFlightsPage(driver));
        }
Ejemplo n.º 3
0
        public void GoToBagsPage()
        {
            var cookiePolicyDraw = new CookiePolicyDraw(driver);

            cookiePolicyDraw.ClickAcceptButton();

            var searchPodPage = new SearchPodPage(driver);

            searchPodPage.SelectOneWayCheckBox();
            searchPodPage.EnterOriginAirportTextField();
            searchPodPage.EnterDestinationAirportTextField();
            searchPodPage.ClickDepartingCalendar();

            var calendarDraw = new CalendarDraw(driver);

            //calendarDraw.SelectCalendarDate(calendarDraw.SelectCalendarDate(2017-12-01));
            searchPodPage.ClickAddAdultButton();
            searchPodPage.ClickShowFlightsButton();
            //yyyy-MM-dd
        }
Ejemplo n.º 4
0
        public void SpecialAssistanceDrawOpens()
        {
            var cookiePolicyDraw = new CookiePolicyDraw(driver);

            cookiePolicyDraw.ClickAcceptButton();

            var searchPodPage = new SearchPodPage(driver);

            searchPodPage.SelectOneWayCheckBox();
            searchPodPage.EnterOriginAirportTextField();
            searchPodPage.EnterDestinationAirportTextField();
            searchPodPage.ClickDepartingCalendar();

            var calendarDraw = new CalendarDraw(driver);

            calendarDraw.SelectCalendarDate(DateTime.UtcNow.AddDays(3));
            searchPodPage.ClickAddAdultButton();
            searchPodPage.ClickShowFlightsButton();

            var pickFlightsPage = new PickFlightsPage(driver);

            pickFlightsPage.SelectAFlight();

            var helpingHandPage = new HelpingHandPage(driver);

            helpingHandPage.ClickContinueButton();
            helpingHandPage.ClickSkipButton();

            var holdLuggagePage = new HoldLuggagePage(driver);

            holdLuggagePage.ClickAdd15kgBagButton();
            holdLuggagePage.ClickAdd15kgBagButton();
            holdLuggagePage.ClickAdd15kgBagButton();
            holdLuggagePage.ClickRemove15kgBagButton();
            holdLuggagePage.ClickAddSportsEquipmentButton();
        }