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_charaselect ⇒ Object
- #go_to_home(character_id = '') ⇒ Object
- #go_to_welcome ⇒ Object
- #visit_to_home ⇒ Object
Instance Method Details
#go_to_character_select ⇒ Object
13 14 15 16 17 |
# File 'lib/lyne/session/screen_transitions.rb', line 13 def go_to_character_select move_to do @page.find(:xpath, "//a[@href='/sc/login/characterselect/']").click end end |
#go_to_charaselect ⇒ Object
25 26 27 28 29 |
# File 'lib/lyne/session/screen_transitions.rb', line 25 def go_to_charaselect move_to do @page.find(:xpath, "//a[@href='/sc/home/characterchange/']").click end end |
#go_to_home(character_id = '') ⇒ Object
19 20 21 22 23 |
# File 'lib/lyne/session/screen_transitions.rb', line 19 def go_to_home character_id='' move_to do @page.find(:xpath, "//a[@rel='#{character_id.presence || @options[:character_id]}']").click end end |
#go_to_welcome ⇒ Object
3 4 5 6 7 8 9 10 11 |
# 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 @page.html end end |
#visit_to_home ⇒ Object
31 32 33 34 35 |
# File 'lib/lyne/session/screen_transitions.rb', line 31 def visit_to_home move_to do @page.visit('/sc/home/') end end |