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); }
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)); }
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 }
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(); }