Exemple #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);
        }
Exemple #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));
        }
Exemple #3
0
        public void DefaultValuesSearchPodPage()
        {
            var cookiePolicyDraw = new CookiePolicyDraw(driver);

            cookiePolicyDraw.ClickAcceptButton();

            var searchPodPage = new SearchPodPage(driver);

            Assert.Multiple(() =>
            {
                Assert.IsTrue(searchPodPage.IsTrueCheckBoxDisplayed());
                Assert.IsTrue(searchPodPage.IsOriginAirportDisplayed());
                Assert.IsTrue(searchPodPage.IsDestinationAirportDisplayed());
                Assert.IsTrue(searchPodPage.IsNoOfAdultsDisplayed());
                Assert.IsTrue(searchPodPage.IsNoOfChildrenDisplayed());
                Assert.IsTrue(searchPodPage.IsNoOfInfantsDisplayed());
                Assert.IsTrue(searchPodPage.IsShowFlightsButtonDisplayed());
            });
        }
Exemple #4
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
        }
Exemple #5
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();
        }