Class: Kobot::Selector

Inherits:
Object
  • Object
show all
Defined in:
lib/kobot/selector.rb

Overview

The texts used in selectors to identify the elements on KOT UI.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#kot_date_saturdayObject

Returns the value of attribute kot_date_saturday.



6
7
8
# File 'lib/kobot/selector.rb', line 6

def kot_date_saturday
  @kot_date_saturday
end

#kot_date_sundayObject

Returns the value of attribute kot_date_sunday.



6
7
8
# File 'lib/kobot/selector.rb', line 6

def kot_date_sunday
  @kot_date_sunday
end

#kot_workday_time_off_textObject

Returns the value of attribute kot_workday_time_off_text.



6
7
8
# File 'lib/kobot/selector.rb', line 6

def kot_workday_time_off_text
  @kot_workday_time_off_text
end

#location_area_notification_textObject

Returns the value of attribute location_area_notification_text.



6
7
8
# File 'lib/kobot/selector.rb', line 6

def location_area_notification_text
  @location_area_notification_text
end

#login_success_notification_textObject

Returns the value of attribute login_success_notification_text.



6
7
8
# File 'lib/kobot/selector.rb', line 6

def 
  @login_success_notification_text
end

Returns the value of attribute logout_menu_link_text.



6
7
8
# File 'lib/kobot/selector.rb', line 6

def logout_menu_link_text
  @logout_menu_link_text
end

Returns the value of attribute time_card_menu_link_text.



6
7
8
# File 'lib/kobot/selector.rb', line 6

def time_card_menu_link_text
  @time_card_menu_link_text
end

Class Method Details

.enObject



15
16
17
18
19
20
21
22
23
24
25
# File 'lib/kobot/selector.rb', line 15

def en
  selector = Selector.new
  selector. = 'Data has been obtained'
  selector.location_area_notification_text = 'Obtained location'
  selector.time_card_menu_link_text = 'Time Card'
  selector.kot_date_saturday = 'Sat'
  selector.kot_date_sunday = 'Sun'
  selector.kot_workday_time_off_text = 'time-off'
  selector.logout_menu_link_text = 'Sign out'
  selector
end

.jaObject



27
28
29
30
31
32
33
34
35
36
37
# File 'lib/kobot/selector.rb', line 27

def ja
  selector = Selector.new
  selector. = 'データを取得しました'
  selector.location_area_notification_text = '位置情報取得済み'
  selector.time_card_menu_link_text = 'タイムカード'
  selector.kot_date_saturday = ''
  selector.kot_date_sunday = ''
  selector.kot_workday_time_off_text = '休日'
  selector.logout_menu_link_text = 'ログアウト'
  selector
end