Class: PersonnelLookup
- Inherits:
-
BasePage
- Object
- PageFactory
- BasePage
- PersonnelLookup
show all
- Defined in:
- lib/sambal-kuali/pages/personnel_lookup.rb
Constant Summary
collapse
- NAME_COLUMN =
3
Instance Method Summary
collapse
Methods inherited from BasePage
frame_element, green_search_buttons, validation_elements, wrapper_elements
Instance Method Details
#change_results_page(page_number) ⇒ Object
40
41
42
43
|
# File 'lib/sambal-kuali/pages/personnel_lookup.rb', line 40
def change_results_page(page_number)
results_table.wait_until_present
paginate_links_span.link(text: "#{page_number}").click
end
|
#frm ⇒ Object
7
8
9
|
# File 'lib/sambal-kuali/pages/personnel_lookup.rb', line 7
def frm
self.frame(class: "fancybox-iframe")
end
|
#get_long_name(principal_name) ⇒ Object
31
32
33
34
|
# File 'lib/sambal-kuali/pages/personnel_lookup.rb', line 31
def get_long_name(principal_name)
target_row(principal_name).wait_until_present
target_row(principal_name).cells[NAME_COLUMN].text
end
|
#return_value(principal_name) ⇒ Object
Clicks the ‘return value’ link for the named row
19
20
21
22
23
24
25
26
27
28
|
# File 'lib/sambal-kuali/pages/personnel_lookup.rb', line 19
def return_value(principal_name)
target_row(principal_name).wait_until_present
target_row(principal_name).link(text: "return value").wait_until_present
begin
target_row(principal_name).link(text: "return value").click
rescue Timeout::Error => e
puts "rescued target_row personnel lookup"
end
loading.wait_while_present
end
|
#target_row(principal_name) ⇒ Object
36
37
38
|
# File 'lib/sambal-kuali/pages/personnel_lookup.rb', line 36
def target_row(principal_name)
results_table.row(text: /#{principal_name}/)
end
|