Module: Lyne::Session::ScreenTransitions
- Included in:
- Browser
- Defined in:
- lib/lyne/session/screen_transitions.rb
Instance Method Summary collapse
- #go_to_character_select ⇒ Object
- #go_to_home ⇒ Object
- #go_to_welcome ⇒ Object
- #visit_to_home ⇒ Object
Instance Method Details
#go_to_character_select ⇒ Object
12 13 14 15 16 |
# File 'lib/lyne/session/screen_transitions.rb', line 12 def go_to_character_select move_to do @page.find(:xpath, "//a[@href='/sc/login/characterselect/']").click end end |
#go_to_home ⇒ Object
18 19 20 21 22 |
# File 'lib/lyne/session/screen_transitions.rb', line 18 def go_to_home move_to do @page.find(:xpath, "//a[@rel='#{@options[:character_id]}']").click end end |
#go_to_welcome ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/lyne/session/screen_transitions.rb', line 3 def go_to_welcome move_to do @page.visit login_url @page.fill_in '_pr_confData_sqexid', with: @options[:account] @page.fill_in '_pr_confData_passwd', with: @options[:password] @page.find(:xpath, ".//a[@id='btLogin']").click end end |
#visit_to_home ⇒ Object
24 25 26 27 28 |
# File 'lib/lyne/session/screen_transitions.rb', line 24 def visit_to_home move_to do @page.visit('sc/home/') end end |