Module: TourDetail

Included in:
DestinationServicesGUI::Detail
Defined in:
lib/page_objects/modules/tour_detail.rb

Instance Method Summary collapse

Instance Method Details

#get_tour_available_datesObject

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_schedulesObject



21
22
23
24
25
26
27
# File 'lib/page_objects/modules/tour_detail.rb', line 21

def get_tour_available_schedules

  options = browser.select(:id, 'activity-option-1').options.to_a.delete_if { | option | option.text.include? "Selec"  }

  options

end

#go_to_disney_checkoutObject



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_checkoutObject



37
38
39
40
41
42
43
44
45
# File 'lib/page_objects/modules/tour_detail.rb', line 37

def go_to_tour_checkout

  button = browser.a(:class, 'eva-button-primary-medium-blockall')

  button.wait_until_present(30)

  button.click

end

#go_to_universal_checkoutObject



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_calendarObject



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