Class: Gradebook
- Defined in:
- lib/sambal-cle/page_objects/gradebook.rb
Overview
The topmost page in a Site’s Gradebook
Instance Method Summary collapse
-
#due_date(assignment) ⇒ Object
Returns the due date value for the specified assignment.
- #items_titles ⇒ Object
-
#released_to_students(assignment) ⇒ Object
Returns the value of the “Released to Students” column for the specified assignment title.
Methods inherited from BasePage
basic_page_elements, button, damballa, frame_element, link
Instance Method Details
#due_date(assignment) ⇒ Object
Returns the due date value for the specified assignment.
26 27 28 |
# File 'lib/sambal-cle/page_objects/gradebook.rb', line 26 def due_date(assignment) frm.table(:class=>"listHier lines nolines").row(:text=>/#{Regexp.escape(assignment)}/)[3].text end |
#items_titles ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/sambal-cle/page_objects/gradebook.rb', line 10 def items_titles titles = [] items_table = frm.table(:class=>"listHier lines nolines") 1.upto(items_table.rows.size-1) do |x| titles << items_table.row(:index=>x).a(:index=>0).text end return titles end |
#released_to_students(assignment) ⇒ Object
Returns the value of the “Released to Students” column for the specified assignment title.
21 22 23 |
# File 'lib/sambal-cle/page_objects/gradebook.rb', line 21 def released_to_students(assignment) frm.table(:class=>"listHier lines nolines").row(:text=>/#{Regexp.escape(assignment)}/)[4].text end |