Module: Lyne::Session::ScreenTransitions

Included in:
Browser
Defined in:
lib/lyne/session/screen_transitions.rb

Instance Method Summary collapse

Instance Method Details

#go_to_character_selectObject



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_homeObject



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_welcomeObject



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 
    @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_homeObject



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