Class: BasePage
- Inherits:
-
PageFactory
- Object
- PageFactory
- BasePage
show all
- Defined in:
- lib/sambal-kuali/kuali_base_page.rb
Direct Known Subclasses
AcademicTermLookup, ActivityOfferingInquiry, ActivityOfferingLookup, ActivityOfferingMaintenanceBase, AppointmentWindowLookup, CalendarSearch, CopyHolidayCalendar, CourseOfferingEdit, CourseOfferingInfoLookup, CreateAcadCalendar, CreateCourseOffering, CreateProcess, DeleteTargetTerm, DepartmentLookup, DisplayScheduleOfClasses, DocumentSearch, EditAcademicCalendar, Enrollment, EnrollmentFeeLookup, FormatOfferingInfoLookup, Header, HoldBase, HolidayBase, MainMenu, ManageCourseOfferings, ManageProcess, ManageRegistrationGroups, ManageRegistrationWindows, OrganizationBase, PerformRollover, PersonnelLookup, PopulationsBase, RolloverConfirmReleaseToDepts, RolloverDetails, TermLookup, TermsInformation, UnknownTermCourseOfferings, WorkflowPreferences
Class Method Summary
collapse
Class Method Details
.frame_element ⇒ Object
26
27
28
29
|
# File 'lib/sambal-kuali/kuali_base_page.rb', line 26
def frame_element
element(:frm) { |b| b } end
|
31
32
33
34
35
36
|
# File 'lib/sambal-kuali/kuali_base_page.rb', line 31
def green_search_buttons
action(:search) { |b| b.frm.button(text: "Search").click; b.loading.wait_while_present } action(:clear_values) { |b| b.frm.button(text: "Clear Values").click; b.loading.wait_while_present } action(:cancel) { |b| b.frm.button(text: "Cancel").click; b.loading.wait_while_present } action(:close) { |b| b.frm.button(text: "Close").click; b.loading.wait_while_present } end
|
.validation_elements ⇒ Object
38
39
40
41
42
43
44
45
|
# File 'lib/sambal-kuali/kuali_base_page.rb', line 38
def validation_elements
value(:error_header) { |b| b.frm.h3(id: "pageValidationHeader").text }
value(:info_header) { |b| b.frm.h3(id: "pageValidationHeader").text }
element(:error_list) { |b| b.frm.ul(id: "pageValidationList") }
element(:info_list) { |b| b.frm.ul(id: "pageValidationList") }
value(:first_error) { |b| b.error_list.link.text }
value(:first_msg) { |b| b.info_list.li.text }
end
|
.wrapper_elements ⇒ Object
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/sambal-kuali/kuali_base_page.rb', line 5
def wrapper_elements
element(:main_menu_el) { |b| b.link(title: "Main Menu") }
element(:logout_el) { |b| b.button(value: "Logout") }
element(:administration_el) { |b| b.link(title: "Administration") }
action(:home) { |b| b.link(text: "Home").click }
action(:main_menu) { |p| p.main_menu_el.click }
action(:provide_feedback) { |b| b.link(title: "Provide Feedback").click }
action(:administration) { |p| p.administration_el.click }
action(:action_list) { |b| b.link(title: "Action List").click }
action(:doc_search) { |b| b.link(title: "Document Search").click }
value(:build) { |b| b.div(id: "build").text }
value(:logged_in_user) { |b| b.div(id: "login-info").text[/(?<=:.).*$/] }
value(:copyright) { |b| b.div(id: "footer-copyright").text }
action(:acknowledgements) { |b| b.link(href: "acknowledgments.jsp").click }
element(:loading) { |b| b.image(alt: "Loading...") }
end
|