Module: AthenaClientElements

Defined in:
lib/efset_test_helper/efset_apps/athena_client_elements.rb

Instance Method Summary collapse

Instance Method Details

#athena_client_iframeObject

Main container



7
8
9
# File 'lib/efset_test_helper/efset_apps/athena_client_elements.rb', line 7

def athena_client_iframe
  iframe(id: 'athena-client-iframe').iframe(class: 'eft-iframe')
end

#audio_check_titleObject

Audio check / Audio play



23
24
25
# File 'lib/efset_test_helper/efset_apps/athena_client_elements.rb', line 23

def audio_check_title
  athena_client_iframe.h4(text: 'Audio Check')
end

#audio_check_yesObject



31
32
33
# File 'lib/efset_test_helper/efset_apps/athena_client_elements.rb', line 31

def audio_check_yes
  athena_client_iframe.button(class: 'btn btn-primary', text: 'Yes')
end

#confirm_next_taskObject



43
44
45
# File 'lib/efset_test_helper/efset_apps/athena_client_elements.rb', line 43

def confirm_next_task
  athena_client_iframe.button(id: 'confirm-next-task')
end

#continue_next_taskObject

Next task



39
40
41
# File 'lib/efset_test_helper/efset_apps/athena_client_elements.rb', line 39

def continue_next_task
  athena_client_iframe.button(id: 'nextButtonDiv')
end

#play_iconObject



27
28
29
# File 'lib/efset_test_helper/efset_apps/athena_client_elements.rb', line 27

def play_icon
  athena_client_iframe.span(class: 'btn-icon glyphicon glyphicon-play')
end

#questions_tabObject



64
65
66
# File 'lib/efset_test_helper/efset_apps/athena_client_elements.rb', line 64

def questions_tab
  athena_client_iframe.link(text: 'Questions')
end

#reading_tabObject

Tasks mobile



60
61
62
# File 'lib/efset_test_helper/efset_apps/athena_client_elements.rb', line 60

def reading_tab
  athena_client_iframe.link(text: 'Reading')
end

#skip_instructionsObject

Page / Test Instructions



15
16
17
# File 'lib/efset_test_helper/efset_apps/athena_client_elements.rb', line 15

def skip_instructions
  athena_client_iframe.button(text: 'Next').click
end

#task_instructionsObject

Tasks



51
52
53
# File 'lib/efset_test_helper/efset_apps/athena_client_elements.rb', line 51

def task_instructions
  athena_client_iframe.div(class: 'instructions')
end