Module: TourDetail
- Included in:
- DestinationServicesGUI::Detail
- Defined in:
- lib/page_objects/modules/tour_detail.rb
Instance Method Summary collapse
-
#get_tour_available_dates ⇒ Object
retorna un arreglo de fechas disponibles.
- #get_tour_available_schedules ⇒ Object
- #go_to_disney_checkout ⇒ Object
- #go_to_tour_checkout ⇒ Object
- #go_to_universal_checkout ⇒ Object
- #open_tour_calendar ⇒ Object
- #set_tour_adults_number(adults = 2) ⇒ Object
- #set_tour_children_number(children = 2) ⇒ Object
Instance Method Details
#get_tour_available_dates ⇒ Object
retorna un arreglo de fechas disponibles
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/page_objects/modules/tour_detail.rb', line 5 def get_tour_available_dates #retorna un arreglo de fechas disponibles dates = [] sleep 1 browser.table(:class, 'ui-datepicker-calendar').tds(:class, 'available').each do | date | dates << date end dates end |
#get_tour_available_schedules ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/page_objects/modules/tour_detail.rb', line 21 def get_tour_available_schedules = browser.select(:id, 'activity-option-1')..to_a.delete_if { | option | option.text.include? "Selec" } end |
#go_to_disney_checkout ⇒ Object
51 52 53 54 55 |
# File 'lib/page_objects/modules/tour_detail.rb', line 51 def go_to_disney_checkout wait_for_disney_loader browser.a(:class, 'eva-button-primary-medium-blockall').click end |
#go_to_tour_checkout ⇒ Object
37 38 39 40 41 42 43 44 45 |
# File 'lib/page_objects/modules/tour_detail.rb', line 37 def go_to_tour_checkout = browser.a(:class, 'eva-button-primary-medium-blockall') .wait_until_present(30) .click end |
#go_to_universal_checkout ⇒ Object
57 58 59 60 61 62 63 |
# File 'lib/page_objects/modules/tour_detail.rb', line 57 def go_to_universal_checkout wait_for_disney_loader browser.a(:class, 'eva-button-primary-medium-blockall').click end |
#open_tour_calendar ⇒ Object
47 48 49 |
# File 'lib/page_objects/modules/tour_detail.rb', line 47 def open_tour_calendar browser.div(:class,'ux-common-grid-row date-picker-container').input.click end |
#set_tour_adults_number(adults = 2) ⇒ Object
29 30 31 |
# File 'lib/page_objects/modules/tour_detail.rb', line 29 def set_tour_adults_number(adults = 2) browser.select_list(:class, 'bot-adults-number').select(adults) end |
#set_tour_children_number(children = 2) ⇒ Object
33 34 35 |
# File 'lib/page_objects/modules/tour_detail.rb', line 33 def set_tour_children_number(children = 2) browser.select_list(:class, 'bot-children-number').select(children) end |