Class: AssignmentsBase

Inherits:
BasePage show all
Defined in:
lib/sakai-cle-test-api/page_objects/assignments.rb

Overview

Assignments Pages

Class Method Summary collapse

Methods inherited from BasePage

basic_page_elements, frame_element

Methods inherited from PageMaker

element, expected_element, expected_title, #initialize, #method_missing, page_url

Constructor Details

This class inherits a constructor from PageMaker

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class PageMaker

Class Method Details

.listview_elementsObject



21
22
23
24
25
26
27
# File 'lib/sakai-cle-test-api/page_objects/assignments.rb', line 21

def listview_elements
  element(:select_page_size) { |b| b.frm.select(:name=>"selectPageSize") }
  action(:next) { |b| b.frm.button(:name=>"eventSubmit_doList_next").click }
  action(:last) { |b| b.frm.button(:name=>"eventSubmit_doList_last").click }
  action(:previous) { |b| b.frm.button(:name=>"eventSubmit_doList_prev").click }
  action(:first) { |b| b.frm.button(:name=>"eventSubmit_doList_first").click }
end


12
13
14
15
16
17
18
19
# File 'lib/sakai-cle-test-api/page_objects/assignments.rb', line 12

def menu_elements
  action(:add_assignment) { |b| b.frm.link(:text=>"Add").click }
  action(:assignment_list) { |b| b.frm.link(:text=>"Assignment List").click }
  action(:grade_report) { |b| b.frm.link(:text=>"Grade Report").click }
  action(:student_view) { |b| b.frm.link(:text=>"Student View").click }
  action(:permissions) { |b| b.frm.link(:text=>"Permissions").click }
  action(:options) { |b| b.frm.link(:text=>"Options").click }
end